Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAuthTokenString ¶
Types ¶
type AuthToken ¶
func GetAuthTokenFromJWTMapClaims ¶
func GetAuthTokenFromJWTMapClaims(claims jwt.MapClaims) *AuthToken
func (*AuthToken) ToJWTMapClaims ¶
func (a *AuthToken) ToJWTMapClaims() jwt.MapClaims
type LoginSession ¶
func CheckLoginSession ¶
func CheckLoginSession(ctx context.Context, id string) (*LoginSession, error)
func NewLoginSession ¶
func NewLoginSession(account string) *LoginSession
func (*LoginSession) SaveToRedis ¶
func (ls *LoginSession) SaveToRedis(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.