Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DialWithBackOff = NewBackoffDialer(backOffTemplate)
View Source
var ErrRequestQueueFull = errors.New("request queue is full! This request is dropped")
View Source
var ErrTimeoutDialing = errors.New("timed out dialing")
Errors
Functions ¶
func NewBackoffDialer ¶
func NewProxyAutoTransport ¶
func NewProxyAutoTransport(maxIdleProxyConns, maxIdleProxyConnsPerHost int) http.RoundTripper
Types ¶
type Breaker ¶
type Breaker struct {
// contains filtered or unexported fields
}
Breaker enforces a concurrency limit on the execution of a function. Function call attempts beyond the limit of the max-concurrency are failed immediately.
func NewBreaker ¶
func NewBreaker(params BreakerParams) *Breaker
type BreakerParams ¶
type RoundTripperFunc ¶
type Throttler ¶
type Throttler struct {
TrafficReEnableDuration time.Duration
// contains filtered or unexported fields
}
func NewThrottler ¶
func (*Throttler) GetQueueSize ¶
Click to show internal directories.
Click to hide internal directories.