Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
type JWTClaims ¶
type JWTClaims struct { *jwt.StandardClaims Payload interface{} }
type Options ¶
type Options struct { Expire time.Duration `yaml:"expire" default:"24h0m0s" help:"jwt expire time"` Cert string `yaml:"cert" default:"certs/jwt/tls.crt" help:"jwt cert file"` Key string `yaml:"key" default:"certs/jwt/tls.key" help:"jwt key file"` }
func DefaultOptions ¶
func DefaultOptions() *Options
Click to show internal directories.
Click to hide internal directories.