Codebase list golang-github-go-kit-kit / 0880383
Don't export the type of the context keys to avoid collisions Brian Kassouf 7 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
88 "github.com/go-kit/kit/endpoint"
99 )
1010
11 type key string
12
1113 const (
1214 // JWTTokenContextKey holds the key used to store a JWT Token in the context
13 JWTTokenContextKey = "JWTToken"
15 JWTTokenContextKey key = "JWTToken"
1416 // JWTClaimsContxtKey holds the key used to store the JWT Claims in the context
15 JWTClaimsContextKey = "JWTClaims"
17 JWTClaimsContextKey key = "JWTClaims"
1618 )
1719
1820 var (