Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBalancer ¶
Types ¶
type Balancer ¶
type Balancer struct {
// contains filtered or unexported fields
}
func GetBalancer ¶
func NewBalancer ¶
func NewBalancer(name string, strategy strategy.LoadBalancingStrategy) *Balancer
func NewBalancerL ¶
func NewBalancerL(name string, strategy strategy.LoadBalancingStrategy, chanLen int) *Balancer
func (*Balancer) AddPerformer ¶
func (*Balancer) AddPerformerW ¶
type CircuitBreakerConfig ¶
type CircuitBreakerConfig struct { // Timeout is how long to wait for command to bitcoinMininode, in milliseconds Timeout int // MaxConcurrentRequests is how many commands of the same type can run at the same time MaxConcurrentRequests int // RequestVolumeThreshold is the minimum number of requests needed before a circuit can be tripped due to health RequestVolumeThreshold int // SleepWindow is how long, in milliseconds, to wait after a circuit opens before testing for recovery SleepWindow int // ErrorPercentThreshold causes circuits to open once the rolling measure of errors exceeds this percent of requests ErrorPercentThreshold int }
Click to show internal directories.
Click to hide internal directories.