Documentation
¶
Index ¶
- func GetHTTPRouter(mode string) *gin.Engine
- func Get_UserId_Permissions(ctx *gin.Context) (int64, []string, error)
- 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.
Directories
¶
| Path | Synopsis |
|---|---|
|
example
command
|
|
|
example/docs
Package docs Code generated by swaggo/swag.
|
Package docs Code generated by swaggo/swag. |
|
examples
command
|
|
|
databases
|
|
|
example
command
|
|
Click to show internal directories.
Click to hide internal directories.