Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { DB *DBConf App *freedom.Configuration Redis *RedisConf }
Configuration .
type DBConf ¶
type DBConf struct { Addr string `toml:"addr"` MaxOpenConns int `toml:"max_open_conns"` MaxIdleConns int `toml:"max_idle_conns"` ConnMaxLifeTime int `toml:"conn_max_life_time"` }
DBConf .
type RedisConf ¶
type RedisConf struct { Addr string `toml:"addr"` Password string `toml:"password"` DB int `toml:"db"` MaxRetries int `toml:"max_retries"` PoolSize int `toml:"pool_size"` ReadTimeout int `toml:"read_timeout"` WriteTimeout int `toml:"write_timeout"` IdleTimeout int `toml:"idle_timeout"` IdleCheckFrequency int `toml:"idle_check_frequency"` MaxConnAge int `toml:"max_conn_age"` PoolTimeout int `toml:"pool_timeout"` }
RedisConf .
Click to show internal directories.
Click to hide internal directories.