Documentation
¶
Index ¶
- func Auth(authenticate bool) gin.HandlerFunc
- func AuthLocal() gin.HandlerFunc
- func GetCurrentUser(c *gin.Context) (*entities.User, error)
- func MustGetCurrentUser(c *gin.Context) *entities.User
- func RenderError(c *gin.Context, status int, errors interface{})
- func RunAsync(context AsyncJobContext)
- type AsyncJobContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthLocal ¶
func AuthLocal() gin.HandlerFunc
AuthLocal - authenticate request for local services
func GetCurrentUser ¶
GetCurrentUser return current user from context
func MustGetCurrentUser ¶
MustGetCurrentUser return current user from context or panic
func RenderError ¶
RenderError formats JSON error
Types ¶
Click to show internal directories.
Click to hide internal directories.