Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorUnableToVerifyToken = NewError.New("unable to authorize user", http.StatusUnauthorized)
)
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (Middleware) ApiKey ¶
func (m Middleware) ApiKey() gin.HandlerFunc
func (Middleware) AuthJWT ¶
func (m Middleware) AuthJWT() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.