Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthToken ¶
AuthToken returns the auth token stored on the given context.
Returns nil if the token is not available on the context.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a type alias used for storing data in a context
const ( // RequestIDContextKey is the name of the key stored on the contet RequestIDContextKey ContextKey = "request-id" // LoggerContextKey is the name of the logger key stored on the context LoggerContextKey ContextKey = "logger" // AuthTokenContextKey is the name of the auth token stored on the context AuthTokenContextKey ContextKey = "auth-token" // SessionContextKey is the name of the session key stored on the context SessionContextKey ContextKey = "session" )
Click to show internal directories.
Click to hide internal directories.