Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBalancer ¶
type IBalancer interface { Serve() func(ctx *fasthttp.RequestCtx) Stats() []ProxyStat }
type IsHostAlive ¶
type ProxyStat ¶
type ProxyStat struct { Addr string `json:"addr"` TotalReqCount uint64 `json:"total_req_count"` AvgResTime float64 `json:"avg_res_time"` LastUseTime time.Time `json:"last_use_time"` ConnsCount int `json:"conns_count"` IsHostAlive bool `json:"is_host_alive"` BackendHash uint32 `json:"backend_hash"` }
Click to show internal directories.
Click to hide internal directories.