Documentation ¶
Index ¶
- func NewJWTGenerateResult(signedToken *string, token *jwt.Token, claims *auth.JWTClaims) interfaces.JWTGenerateResult
- func NewJWTValidateResult(token jwt.Token, claims auth.JWTClaims) interfaces.JWTValidateResult
- func NewLoginResult(user models.User, signedToken string, token jwt.Token, claims auth.JWTClaims) interfaces.LoginResult
- type JWTGenerateResultImpl
- type JWTValidateResultImpl
- type LoginResultImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJWTGenerateResult ¶
func NewJWTGenerateResult(signedToken *string, token *jwt.Token, claims *auth.JWTClaims) interfaces.JWTGenerateResult
func NewJWTValidateResult ¶
func NewJWTValidateResult(token jwt.Token, claims auth.JWTClaims) interfaces.JWTValidateResult
func NewLoginResult ¶
func NewLoginResult(user models.User, signedToken string, token jwt.Token, claims auth.JWTClaims) interfaces.LoginResult
Types ¶
type JWTGenerateResultImpl ¶
type JWTGenerateResultImpl struct {
// contains filtered or unexported fields
}
func (JWTGenerateResultImpl) Claims ¶
func (j JWTGenerateResultImpl) Claims() auth.JWTClaims
func (JWTGenerateResultImpl) SignedToken ¶
func (j JWTGenerateResultImpl) SignedToken() string
func (JWTGenerateResultImpl) Token ¶
func (j JWTGenerateResultImpl) Token() jwt.Token
type JWTValidateResultImpl ¶
type JWTValidateResultImpl struct {
// contains filtered or unexported fields
}
func (JWTValidateResultImpl) Claims ¶
func (j JWTValidateResultImpl) Claims() auth.JWTClaims
func (JWTValidateResultImpl) Token ¶
func (j JWTValidateResultImpl) Token() jwt.Token
type LoginResultImpl ¶
type LoginResultImpl struct {
// contains filtered or unexported fields
}
func (LoginResultImpl) Claims ¶
func (l LoginResultImpl) Claims() auth.JWTClaims
func (LoginResultImpl) SignedToken ¶
func (l LoginResultImpl) SignedToken() string
func (LoginResultImpl) Token ¶
func (l LoginResultImpl) Token() jwt.Token
func (LoginResultImpl) User ¶
func (l LoginResultImpl) User() models.User
Click to show internal directories.
Click to hide internal directories.