Documentation ¶
Index ¶
- func GetRoleFromContext(ctx context.Context) (string, bool)
- func GetUserIDFromContext(ctx context.Context) (uint, bool)
- func GetUsernameFromContext(ctx context.Context) (string, bool)
- func SetRoleToContext(ctx context.Context, role string) context.Context
- func SetUserIDToContext(ctx context.Context, userID uint) context.Context
- func SetUsernameToContext(ctx context.Context, username string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.