 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	ErrNotDialer = fmt.Errorf("error not dialer")
)
    Functions ¶
Types ¶
type Config ¶
type Config struct {
	Policy  LoadBalancePolicyEnum `json:",omitempty"`
	Dialers []*Weight
}
    type LoadBalancePolicyEnum ¶
type LoadBalancePolicyEnum string
const ( EnumRoundRobin LoadBalancePolicyEnum = "round_robin" EnumRandom LoadBalancePolicyEnum = "random" )
type Random ¶
type Random struct {
	// contains filtered or unexported fields
}
    func NewRoundRobin ¶
func (*Random) RoundTripper ¶ added in v0.4.16
func (r *Random) RoundTripper() http.RoundTripper
type RoundRobin ¶
type RoundRobin struct {
	// contains filtered or unexported fields
}
    func (*RoundRobin) DialStream ¶
func (*RoundRobin) RoundTripper ¶ added in v0.4.16
func (r *RoundRobin) RoundTripper() http.RoundTripper
 Click to show internal directories. 
   Click to hide internal directories.