Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
JWTContextKey = JWTContextKeyType("jwt")
)
Functions ¶
func RequestsCounterMiddleware ¶
func RequestsCounterMiddleware() mux.MiddlewareFunc
Types ¶
type AccountAuthorizationMiddlewareClient ¶
type AccountAuthorizationMiddlewareClient struct {
// contains filtered or unexported fields
}
func NewAccountAuthorizationMiddleware ¶
func NewAccountAuthorizationMiddleware(logger *zap.Logger) *AccountAuthorizationMiddlewareClient
func (*AccountAuthorizationMiddlewareClient) IsAccountAuthorized ¶
func (aa *AccountAuthorizationMiddlewareClient) IsAccountAuthorized(next http.Handler) http.Handler
type JWT ¶
type JWTContextKeyType ¶
type JWTContextKeyType string
type JWTMiddlewareClient ¶
type JWTMiddlewareClient struct {
// contains filtered or unexported fields
}
func NewJWTMiddleware ¶
func NewJWTMiddleware(logger *zap.Logger, secret string) (*JWTMiddlewareClient, error)
func (*JWTMiddlewareClient) JWTMiddleware ¶
func (jwtmc *JWTMiddlewareClient) JWTMiddleware(next http.Handler) http.Handler
type MiddlewareExemption ¶
Click to show internal directories.
Click to hide internal directories.