Documentation
¶
Index ¶
Constants ¶
View Source
const LoggerKey = logContextKey("logger")
Variables ¶
View Source
var UserContextKey = contextKey(uuid.New())
Functions ¶
Types ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(jwtKey []byte) *AuthMiddleware
func (*AuthMiddleware) Authenticate ¶
func (m *AuthMiddleware) Authenticate(next http.Handler) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.