Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithUserContext ¶
func WithUserContext(ctx context.Context, uc UserContext) context.Context
WithUserContext stores UserContext in the context.
Types ¶
type UserContext ¶
UserContext encapsulates user-specific data.
func GetUserContext ¶
func GetUserContext(ctx context.Context) (UserContext, bool)
GetUserContext retrieves UserContext from the context.
Click to show internal directories.
Click to hide internal directories.