Documentation
¶
Index ¶
- func GetHTTPRouter(mode string) *gin.Engine
- func Get_UserId_Permissions(ctx *gin.Context) (int64, []string, error)
- func IsEmail(s string) bool
- func IsMobile(s string) bool
- func IsPermited(userPerms []string, permsNeeded map[string]bool) bool
- func OptionRequestMiddleware(c *gin.Context)
- func RequestIDMiddleware(c *gin.Context)
- func RequestTimeMiddleware(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPRouter ¶
func Get_UserId_Permissions ¶
func IsPermited ¶
returns true if any string from permsNeeded exists in userPerms
func OptionRequestMiddleware ¶
func RequestIDMiddleware ¶
func RequestTimeMiddleware ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.