Documentation
¶
Overview ¶
普通轮询
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
type Balancer struct {
loadbalance.Picker
// contains filtered or unexported fields
}
func NewBalancer ¶
func NewBalancer(nodes []*loadbalance.NodeInfo) *Balancer
type Builder ¶
type Builder struct {
*loadbalance.Builder
}
type WeightBalancerBuilder ¶
type WeightBalancerBuilder struct {
}
加权轮询
func (*WeightBalancerBuilder) Build ¶
func (w *WeightBalancerBuilder) Build(info base.PickerBuildInfo) balancer.Picker
Click to show internal directories.
Click to hide internal directories.