Documentation ¶
Index ¶
- func AbortWithError(c *gin.Context, err error)
- func DiInjectorMiddleware() gin.HandlerFunc
- func ErrorHandler(c *gin.Context)
- func GinDi(c *gin.Context) di.Injector
- func HeaderAuthorization(c *gin.Context) (string, error)
- func HeaderToken(c *gin.Context) *token.Token
- func IsAdminMiddleware(c *gin.Context)
- func IsAuthenticatedMiddleware(c *gin.Context)
- func Router() *gin.Engine
- type ErrorData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbortWithError ¶
func DiInjectorMiddleware ¶
func DiInjectorMiddleware() gin.HandlerFunc
func ErrorHandler ¶
func HeaderAuthorization ¶
HeaderAuthorization token string from Authorization header
func HeaderToken ¶
HeaderToken Token data from Authorization header
func IsAdminMiddleware ¶
Gin middleware to validate user token and Admin Access
func IsAuthenticatedMiddleware ¶
Gin middleware to validate logged in user token
Types ¶
Click to show internal directories.
Click to hide internal directories.