Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthContextKey = &ctxKey{Name: "AuthKey "}
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(tokenHandler tokenhandler.TokenHandler, logger *zap.Logger) *AuthMiddleware
func (AuthMiddleware) HandleAuth ¶
func (A AuthMiddleware) HandleAuth(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.