Versions in this module Expand all Collapse all v1 v1.5.7 Nov 4, 2024 Changes in this version + const RedisApiPermissionCountPrefix + const RedisCaptchaPrefix + const RedisCasbinChannel + const RedisDataPermissionPrefix + const RedisTenantBlacklistPrefix + const RedisTokenPrefix + type CROSConf struct + Address string + type DatabaseConf struct + CacheTime int + DBName string + DBPath string + Host string + MaxOpenConn int + MysqlConfig string + PGConfig string + Password string + Port int + SSLMode string + SqliteConfig string + Type string + Username string + func (c DatabaseConf) GetDSN() string + func (c DatabaseConf) MysqlDSN() string + func (c DatabaseConf) NewNoCacheDriver() *entsql.Driver + func (c DatabaseConf) PostgresDSN() string + func (c DatabaseConf) SqliteDSN() string + type RedisConf struct + Db int + Host string + Master string + Pass string + Tls bool + Username string + func (r RedisConf) MustNewUniversalRedis() redis.UniversalClient + func (r RedisConf) NewUniversalRedis() (redis.UniversalClient, error) + func (r RedisConf) Validate() error