Documentation
¶
Index ¶
- Constants
- func GetTokenFromContext(ginContext *gin.Context) (string, bool)
- func GetUserAssignedGroups(ginContext *gin.Context) []string
- func GetUserFromContext(ginContext *gin.Context) (models.User, bool)
- func SetContext(ginContext *gin.Context, user models.User) error
- func SetTokenContext(ginContext *gin.Context, token string) error
Constants ¶
View Source
const (
TokenContextKey = "token-context"
)
Variables ¶
This section is empty.
Functions ¶
func GetTokenFromContext ¶ added in v1.0.1
func GetUserAssignedGroups ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.