Documentation ¶
Index ¶
- Constants
- func GetRole(ctx context.Context) (string, bool)
- func GetUserID(ctx context.Context) (entity.UserID, bool)
- func IsAdmin(ctx context.Context) bool
- func SetRole(ctx context.Context, tok jwt.Token) context.Context
- func SetUserID(ctx context.Context, uid entity.UserID) context.Context
- type JWTer
- type Store
Constants ¶
View Source
const ( RoleKey = "role" UserNameKey = "user_name" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JWTer ¶
func (*JWTer) GenerateToken ¶
Click to show internal directories.
Click to hide internal directories.