Documentation ¶
Index ¶
- func Authorizator(c *controllers.DefaultController) gin.HandlerFunc
- func BindDefaultControllerContexts(c *controllers.DefaultController) gin.HandlerFunc
- func CookieAuthenticator(c *controllers.DefaultController) gin.HandlerFunc
- func EnsureUserHaveGroup(c *controllers.DefaultController) gin.HandlerFunc
- func EnsureUserHaveNoGroup(c *controllers.DefaultController) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorizator ¶
func Authorizator(c *controllers.DefaultController) gin.HandlerFunc
func BindDefaultControllerContexts ¶
func BindDefaultControllerContexts(c *controllers.DefaultController) gin.HandlerFunc
bind neccessary infos to the controller
func CookieAuthenticator ¶
func CookieAuthenticator(c *controllers.DefaultController) gin.HandlerFunc
Authenticate all users accessing routes within the use of this middleware. Sets `user_id` using `sessionToken` cookie.
func EnsureUserHaveGroup ¶
func EnsureUserHaveGroup(c *controllers.DefaultController) gin.HandlerFunc
func EnsureUserHaveNoGroup ¶
func EnsureUserHaveNoGroup(c *controllers.DefaultController) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.