config.go 298 B

12345678910111213141516
  1. package zllauth1
  2. import (
  3. "github.com/dgrijalva/jwt-go"
  4. "time"
  5. )
  6. type ZLLAuthConfig struct {
  7. JWTSignMethod jwt.SigningMethod
  8. JWTPrivateKey interface{}
  9. JWTPublicKey interface{}
  10. JWTTTL time.Duration
  11. JWTIssuer string
  12. JWTJTIGenFunc func() string
  13. UserCheck UserCheckHandler
  14. }