Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTInterceptor ¶
func NewJWTTransport ¶
func NewJWTTransport( service, function string, level JWTInterceptorLevel, originalTransport http.RoundTripper, h hash.Hash, jwtKey string, jwtAlg string, lifetime time.Duration) (http.RoundTripper, error)
Types ¶
type Claims ¶
type Claims struct { Checksum string `json:"checksum"` Service string `json:"service"` Function string `json:"function"` jwt.StandardClaims }
type JWTInterceptorLevel ¶ added in v2.0.3
type JWTInterceptorLevel int
const Secure JWTInterceptorLevel = 1
const Simple JWTInterceptorLevel = 0
type RoundTripper ¶
type RoundTripper struct { http.RoundTripper // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.