Documentation ¶
Index ¶
- Constants
- func GetFromContext(ctx context.Context, key string) string
- func HasRole(ctx context.Context, role string) bool
- func NewContext(ctx context.Context, md Metadata) context.Context
- func NewInternalContext(ctx context.Context) context.Context
- func NewOutgoingContext(ctx context.Context) context.Context
- func NewRequestID() string
- type Metadata
Constants ¶
View Source
const ( RequestIDKey = "requestId" M2MKey = "m2m" AccountIDsKey = "accountIds" AccountIDKey = "accountId" UserIDKey = "userId" EmailKey = "email" FirstNameKey = "firstName" LastNameKey = "lastName" TypeKey = "type" SubTypeKey = "subType" RolesKey = "roles" InternalKey = "internal" )
Variables ¶
This section is empty.
Functions ¶
func NewInternalContext ¶ added in v1.5.6
func NewRequestID ¶
func NewRequestID() string
Types ¶
Click to show internal directories.
Click to hide internal directories.