Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2023 Changes in this version + var App = &AppConf + var Custom = &customConf + var Log = &LogConf + var MysqlDefaultDsn = "root:@tcp(127.0.0.1:3307)/crh?charset=utf8mb4&parseTime=true&loc=Local" + var MysqlDefaultIdleTimeout = 3600 + var MysqlDefaultMaxActive = 100 + var MysqlDefaultMaxIdle = 10 + type AppConf struct + Addr string + DbMode bool + Env string + IsDevMode bool + Mode string + ReadTimeout int + WriteTimeout int + type LogConf struct + LogFormatter string + LogLevel string + type MysqlConf struct + Dsn string + IdleTimeout int + MaxActive int + MaxIdle int + func GetMysqlConf(tag string) *MysqlConf + type RedisConf struct + Addr string + DB int + IdleTimeout time.Duration + IsSentinel bool + MasterName string + Password string + ReadTimeout time.Duration + SentinelAddrs []string + WriteTimeout time.Duration + func GetRedisConf(tag string) *RedisConf