Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SaneProxy ¶
type SaneProxy struct { MaxReqPerSec uint64 MaxErrPerSec uint64 BackendHostMap map[string]string BackendsReqPerSec map[string]uint64 BackendsErrPerSec map[string]uint64 BackendsBan map[string]bool }
SaneProxy implements RoundTrip for ReverseProxy to manage
- RateLimiting and CircuitBreaking
func NewSaneProxy ¶
func NewSaneProxy(maxReq uint64, maxErr uint64, proxyMap map[string]string, lbSeparator string) *SaneProxy
NewSaneProxy returns properly configured SaneProxy
- RateLimiting and CircuitBreaking
Click to show internal directories.
Click to hide internal directories.