Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContextKeyUserID is the get to fetch the user id from the context ContextKeyUserID = internalContext.Key("user-id") // ContextKeyLanguageTag is the key for to get the language tag from the context ContextKeyLanguageTag = internalContext.Key("language-tag") // ContextKeyJWTToken is the auth token ContextKeyJWTToken = internalContext.Key("jwt-token") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { }
Client provides the collection of middlewares.
func (Client) AddLanguageTag ¶
AddLanguageTag adds the language tag to the the context
func (Client) EnrichUserID ¶
EnrichUserID adds the user id to the context
Click to show internal directories.
Click to hide internal directories.