Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAdmin ¶
IsAdmin is a middleware that check if the token is valid and if the client is an administrator id := c.MustGet("id").(string) to get the setting value by gin-gonic
func IsAuthorized ¶
IsAuthorized is a middleware that check if the token is valid id := c.MustGet("id").(string) to get the setting value by gin-gonic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.