Documentation ¶
Index ¶
Constants ¶
View Source
const PollingBalancerName = "polling-balancer"
View Source
const WeightPollingBalancerName = "weight-polling-balancer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PollingBalancer ¶
type PollingBalancer struct { }
PollingBalancer 轮询
func (*PollingBalancer) Build ¶
func (p *PollingBalancer) Build(info base.PickerBuildInfo) balancer.Picker
type PollingPicker ¶
type PollingPicker struct {
// contains filtered or unexported fields
}
func (*PollingPicker) Pick ¶
func (p *PollingPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error)
type WeightPollingBalancer ¶
type WeightPollingBalancer struct { }
WeightPollingBalancer 加权平滑轮询
func (*WeightPollingBalancer) Build ¶
func (w *WeightPollingBalancer) Build(info base.PickerBuildInfo) balancer.Picker
type WeightPollingPicker ¶
type WeightPollingPicker struct {
// contains filtered or unexported fields
}
func (*WeightPollingPicker) Pick ¶
func (w *WeightPollingPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error)
Click to show internal directories.
Click to hide internal directories.