Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ApiEndpoint string `toml:"api_endpoint"`
AuthToken string `toml:"auth_token"`
User string `toml:"user"`
Password string `toml:"password"`
SSLVerify bool `toml:"ssl_verify"`
HttpProxy string `toml:"http_proxy"`
HttpKeepalive bool `toml:"http_keepalive"`
RequestTimeout int `toml:"request_timeout"`
RequestRetry int `toml:"request_retry"`
RequestLocktime int64 `toml:"request_locktime"`
Cache bool `toml:"cache"`
CacheTTL int `toml:"cache_ttl"`
NegativeCacheTTL int `toml:"negative_cache_ttl"`
HttpHeaders map[string]string `toml:"http_headers"`
TLS libstns.TLS `toml:"tls"`
PIDFile string `toml:"-"`
LogFile string `toml:"-"`
LogLevel string `toml:"-"`
Cached Cached `toml:"cached"`
}
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.