Documentation ¶
Index ¶
- func APIAuth() gin.HandlerFunc
- func CheckCsrfToken() gin.HandlerFunc
- func HeadersCors() gin.HandlerFunc
- func HeadersNoCache() gin.HandlerFunc
- func Session() gin.HandlerFunc
- func SessionMustAuth() gin.HandlerFunc
- func SessionSetUser(userService datatype.UserService) gin.HandlerFunc
- func SetCsrfToken() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCsrfToken ¶
func CheckCsrfToken() gin.HandlerFunc
CheckCsrfToken adds a middleware that checks csrf token
func HeadersNoCache ¶
func HeadersNoCache() gin.HandlerFunc
HeadersNoCache adds no cache headers to the request
func SessionMustAuth ¶
func SessionMustAuth() gin.HandlerFunc
SessionMustAuth ensures user is authenticated
func SessionSetUser ¶
func SessionSetUser(userService datatype.UserService) gin.HandlerFunc
SessionSetUser sets user on context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.