Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyAppId = "hd-app-id" KeyClient = "hd-client" KeyRelease = "hd-release" KeyTsn = "hd-tsn" // tenant sn KeyTid = "hd-tid" // tenant id KeyUid = "hd-uid" // user id KeyRoleIds = "hd-role-ids" // role ids KeyCaller = "dapr-caller-app-id" )
Variables ¶
This section is empty.
Functions ¶
func AddMetaToContext ¶ added in v0.1.2
Types ¶
type MetaReader ¶
type MetaReader interface {
GetString(key string) string
GetInt64(key string) int64
GetStringSlice(key string) []string
GetInt64Slice(key string) []int64
/* shortcut */
GetTid() int64
GetUid() int64
GetAppId() string
GetTsn() string
GetClient() string
}
func FromGrpcContext ¶
func FromGrpcContext(ctx context.Context) MetaReader
func FromServiceContext ¶
func FromServiceContext(ctx context.Context) MetaReader
Click to show internal directories.
Click to hide internal directories.