Documentation
¶
Index ¶
- type CHBalancer
- type CHBalancerBuilder
- type DynamicWeightBalancer
- type DynamicWeightBalancerBuilder
- type HashBalancer
- type HashBalancerBuilder
- type RandomBalancer
- type RandomBalancerBuilder
- type RoundRobinBalancer
- type RoundRobinBalancerBuilder
- type RwWeightBalancer
- type RwWeightBalancerBuilder
- type WeightBalancer
- type WeightBalancerBuilder
- type WeightRandomBalancer
- type WeightRandomBalancerBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CHBalancer ¶
type CHBalancer struct {
// contains filtered or unexported fields
}
func (*CHBalancer) Pick ¶
func (p *CHBalancer) Pick(info balancer.PickInfo) (balancer.PickResult, error)
type CHBalancerBuilder ¶
type CHBalancerBuilder struct {
// contains filtered or unexported fields
}
func NewCHBalancerBuilder ¶
func NewCHBalancerBuilder() *CHBalancerBuilder
func (*CHBalancerBuilder) Build ¶
func (b *CHBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
func (*CHBalancerBuilder) VirtualNodeCnt ¶
func (b *CHBalancerBuilder) VirtualNodeCnt(cnt int)
type DynamicWeightBalancer ¶
type DynamicWeightBalancer struct {
// contains filtered or unexported fields
}
func (*DynamicWeightBalancer) Pick ¶
func (p *DynamicWeightBalancer) Pick(_ balancer.PickInfo) (balancer.PickResult, error)
type DynamicWeightBalancerBuilder ¶
type DynamicWeightBalancerBuilder struct{}
func (*DynamicWeightBalancerBuilder) Build ¶
func (b *DynamicWeightBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
type HashBalancer ¶
type HashBalancer struct {
// contains filtered or unexported fields
}
func (*HashBalancer) Pick ¶
func (p *HashBalancer) Pick(info balancer.PickInfo) (balancer.PickResult, error)
type HashBalancerBuilder ¶
type HashBalancerBuilder struct{}
func (*HashBalancerBuilder) Build ¶
func (b *HashBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
type RandomBalancer ¶
type RandomBalancer struct {
// contains filtered or unexported fields
}
func (*RandomBalancer) Pick ¶
func (p *RandomBalancer) Pick(_ balancer.PickInfo) (balancer.PickResult, error)
type RandomBalancerBuilder ¶
type RandomBalancerBuilder struct{}
func (*RandomBalancerBuilder) Build ¶
func (b *RandomBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
type RoundRobinBalancer ¶
type RoundRobinBalancer struct {
// contains filtered or unexported fields
}
func (*RoundRobinBalancer) Pick ¶
func (p *RoundRobinBalancer) Pick(_ balancer.PickInfo) (balancer.PickResult, error)
type RoundRobinBalancerBuilder ¶
type RoundRobinBalancerBuilder struct{}
func (*RoundRobinBalancerBuilder) Build ¶
func (b *RoundRobinBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
type RwWeightBalancer ¶
type RwWeightBalancer struct {
// contains filtered or unexported fields
}
func (*RwWeightBalancer) Pick ¶
func (p *RwWeightBalancer) Pick(info balancer.PickInfo) (balancer.PickResult, error)
type RwWeightBalancerBuilder ¶
type RwWeightBalancerBuilder struct {
// contains filtered or unexported fields
}
func NewRwWeightBalancerBuilder ¶
func NewRwWeightBalancerBuilder() *RwWeightBalancerBuilder
func (*RwWeightBalancerBuilder) Build ¶
func (b *RwWeightBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
type WeightBalancer ¶
type WeightBalancer struct {
// contains filtered or unexported fields
}
func (*WeightBalancer) Pick ¶
func (w *WeightBalancer) Pick(_ balancer.PickInfo) (balancer.PickResult, error)
type WeightBalancerBuilder ¶
type WeightBalancerBuilder struct{}
func (*WeightBalancerBuilder) Build ¶
func (w *WeightBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
type WeightRandomBalancer ¶
type WeightRandomBalancer struct {
// contains filtered or unexported fields
}
func (*WeightRandomBalancer) Pick ¶
func (p *WeightRandomBalancer) Pick(_ balancer.PickInfo) (balancer.PickResult, error)
type WeightRandomBalancerBuilder ¶
type WeightRandomBalancerBuilder struct{}
func (*WeightRandomBalancerBuilder) Build ¶
func (b *WeightRandomBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
Click to show internal directories.
Click to hide internal directories.