Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableCORS ¶
func EnableCORS(cors string) gin.HandlerFunc
EnableCORS : Enable CORS Middleware in DEV Enviroment
Types ¶
type Auth ¶
type Auth struct {
Authenticator *auth.Authenticator
}
Auth is used to authenticate and authorize HTTP requests.
func (*Auth) Authenticate ¶
func (a *Auth) Authenticate() gin.HandlerFunc
Authenticate validates a JWT from the `Authorization` header.
Click to show internal directories.
Click to hide internal directories.