Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestID ¶
GetRequestID retrieves the request ID from the context.
func GetUserLevel ¶
GetUserLevel retrieves the user's access level from the context.
func GetUserUsername ¶
GetUserUsername retrieves the user's username from the context.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a custom type for context keys.
var ( CTX_REQUEST_ID ContextKey = "requestID" CTX_USER_LEVEL ContextKey = "userLevel" CTX_USER_USERNAME ContextKey = "userUsername" )
Click to show internal directories.
Click to hide internal directories.