Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{ Proxy: Proxy{ MaxConn: 10000, Strategy: "rnd", DialTimeout: 30 * time.Second, LocalIP: localIP(), }, Listen: []Listen{ { Addr: ":9999", }, }, Consul: Consul{ Addr: "localhost:8500", KVPath: "/fabio/config", TagPrefix: "urlprefix-", URL: "http://localhost:8500/", }, Runtime: Runtime{ GOGC: 800, GOMAXPROCS: runtime.NumCPU(), }, UI: UI{ Addr: ":9998", }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Proxy Proxy Listen []Listen Routes string Metrics []Metrics Consul Consul UI UI Runtime Runtime }
func FromProperties ¶
func FromProperties(p *properties.Properties) (*Config, error)
Click to show internal directories.
Click to hide internal directories.