Documentation ¶
Index ¶
- Variables
- func GetHeader(ctx context.Context, key string) string
- func GetIdentityInfo(ctx context.Context) *pb.IdentityInfo
- func GetIntOrgID(ctx context.Context) (int64, error)
- func GetIntUserID(ctx context.Context) (int64, error)
- func GetInternalClient(ctx context.Context) string
- func GetLang(ctx context.Context) string
- func GetOrgID(ctx context.Context) string
- func GetUserID(ctx context.Context) string
- func HTTPLanguage(r *http.Request) i18n.LanguageCodes
- func IsInternalClient(ctx context.Context) bool
- func Language(ctx context.Context) i18n.LanguageCodes
- func Options() transport.ServiceOption
- func WithInternalClientContext(ctx context.Context, internalClient string) context.Context
- type Error
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var I18n i18n.I18n
I18n .
Functions ¶
func GetIdentityInfo ¶ added in v1.1.0
func GetIdentityInfo(ctx context.Context) *pb.IdentityInfo
GetIdentityInfo get User-ID and Internal-Client from header. return nil if no identity info found.
func GetIntOrgID ¶ added in v1.1.0
GetIntOrgID .
func GetIntUserID ¶ added in v1.1.0
GetIntUserID .
func GetInternalClient ¶ added in v1.1.0
func HTTPLanguage ¶ added in v1.1.0
func HTTPLanguage(r *http.Request) i18n.LanguageCodes
HTTPLanguage .
func IsInternalClient ¶ added in v1.1.0
Types ¶
Click to show internal directories.
Click to hide internal directories.