jwt.go 454 B

12345678
  1. package config
  2. type JWT struct {
  3. SigningKey string `mapstructure:"signing-key" json:"signing-key" yaml:"signing-key"` // jwt签名
  4. ExpiresTime string `mapstructure:"expires-time" json:"expires-time" yaml:"expires-time"` // 过期时间
  5. BufferTime string `mapstructure:"buffer-time" json:"buffer-time" yaml:"buffer-time"` // 缓冲时间
  6. Issuer string `mapstructure:"issuer" json:"issuer" yaml:"issuer"` // 签发者
  7. }