Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &Config{ Proxy: Proxy{ MaxConn: 10000, Strategy: "rnd", Matcher: "prefix", NoRouteStatus: 404, DialTimeout: 30 * time.Second, LocalIP: LocalIPString(), }, Registry: Registry{ Backend: "consul", Consul: Consul{ Addr: "localhost:8500", KVPath: "/fabio/config", TagPrefix: "urlprefix-", Register: true, ServiceAddr: ":9998", ServiceName: "fabio", CheckInterval: time.Second, CheckTimeout: 3 * time.Second, }, }, Listen: []Listen{ { Addr: ":9999", }, }, Runtime: Runtime{ GOGC: 800, GOMAXPROCS: runtime.NumCPU(), }, UI: UI{ Addr: ":9998", Color: "light-green", }, Metrics: []Metrics{ { Target: "", Prefix: "default", Addr: "", Interval: 30 * time.Second, }, }, }
Functions ¶
func LocalIP ¶ added in v1.0.6
LocalIP tries to determine a non-loopback address for the local machine
func LocalIPString ¶ added in v1.0.6
func LocalIPString() string
Types ¶
type Config ¶
Click to show internal directories.
Click to hide internal directories.