Documentation ¶
Index ¶
- func CheckToken(c *gin.Context) (success bool, newToken string)
- func Cors() gin.HandlerFunc
- func GetLogger(c *gin.Context, logger *zap.Logger) *zap.Logger
- func GetTenantId(c *gin.Context) uint
- func GetToken(c *gin.Context) string
- func JwtAuth() gin.HandlerFunc
- func Logger(logger *zap.Logger) gin.HandlerFunc
- func Recovery(logger *zap.Logger) gin.HandlerFunc
- func RequestId(c *gin.Context)
- func SetGinDB(transaction bool, c *gin.Context) *gorm.DB
- func SetUserJwt(userId uint, clientId, account, token string, c *gin.Context)
- func Transaction(logger *zap.Logger) func(c *gin.Context)
- func WebApiToken() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cors ¶
func Cors() gin.HandlerFunc
func GetTenantId ¶
func JwtAuth ¶
func JwtAuth() gin.HandlerFunc
func WebApiToken ¶
func WebApiToken() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.