MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / handler

Struct handler

utils/jwt/jwt.go:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65type handler struct {
66 client redis.Cmdable
67 signingMethod jwt.SigningMethod
68 jwtExpiration time.Duration
69 rcExpiration time.Duration
70 key1 []byte
71 key2 []byte
72 issuer string
73}
74
75func NewJWTHandler(c redis.Cmdable) Handler {
76 key1 := viper.GetString("jwt.auth_key")

Callers 1

ProcessTaskMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected