Versions in this module Expand all Collapse all v1 v1.3.3 Jan 24, 2024 Changes in this version + const RedisCaptchaPrefix + const RedisCasbinChannel + 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