Documentation ¶
Index ¶
- Constants
- Variables
- func CasbinEnforcer() (*casbin.Enforcer, error)
- func DbConnect() (*gorm.DB, error)
- func GenerateMsgIDFromContext(ctx *gin.Context) string
- func GenerateNewJwtToken(uuid uuid.UUID, username string) (string, error)
- func GetDefaultLogger() *slog.Logger
- func RedisConnect() (*redis.Client, error)
- func ValidateData(data interface{}) error
- type Token
Constants ¶
View Source
const TrafficKey = "X-Request-Id"
Variables ¶
View Source
var Enforcer *casbin.Enforcer
Functions ¶
func CasbinEnforcer ¶
func CasbinEnforcer() (*casbin.Enforcer, error)
func GenerateNewJwtToken ¶
func GetDefaultLogger ¶
func RedisConnect ¶
func RedisConnect() (*redis.Client, error)
func ValidateData ¶
func ValidateData(data interface{}) error
Types ¶
Click to show internal directories.
Click to hide internal directories.