round_robin

package
v0.1.73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 6 Imported by: 0

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

func (*Balancer) Pick

type Builder

type Builder struct {
	*loadbalance.Builder
}

func (*Builder) Build

func (b *Builder) Build(info base.PickerBuildInfo) balancer.Picker

type WeightBalancerBuilder

type WeightBalancerBuilder struct {
}

加权轮询

func (*WeightBalancerBuilder) Build

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL