Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Redis *RedisConfig `toml:"redis"` Backend *url.URL `toml:"-"` Version string `toml:"-"` DocumentRoot string `toml:"-"` DevelopmentMode bool `toml:"-"` Socket string `toml:"-"` ProxyHeadersTimeout time.Duration `toml:"-"` APILimit uint `toml:"-"` APIQueueLimit uint `toml:"-"` APIQueueTimeout time.Duration `toml:"-"` APICILongPollingDuration time.Duration `toml:"-"` }
func LoadConfig ¶ added in v1.4.0
LoadConfig from a file
type RedisConfig ¶ added in v1.4.0
type RedisConfig struct { URL TomlURL Sentinel []TomlURL SentinelMaster string Password string DB *int ReadTimeout *TomlDuration WriteTimeout *TomlDuration KeepAlivePeriod *TomlDuration MaxIdle *int MaxActive *int }
type TomlDuration ¶ added in v1.4.1
func (*TomlDuration) UnmarshalTest ¶ added in v1.4.1
func (d *TomlDuration) UnmarshalTest(text []byte) error
Click to show internal directories.
Click to hide internal directories.