Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTTokenGenerator ¶
type JWTTokenGenerator struct { Method jwt.SigningMethod Secret []byte Exp time.Duration }
func (*JWTTokenGenerator) GenerateToken ¶
func (j *JWTTokenGenerator) GenerateToken(username, password string, admin bool) (string, error)
func (*JWTTokenGenerator) GetSecret ¶
func (j *JWTTokenGenerator) GetSecret() []byte
Click to show internal directories.
Click to hide internal directories.