balancer

package
v0.0.0-...-3b1ec4e Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancer

type Balancer interface {
	Next() (addr string)
}

type RandomBanlancer

type RandomBanlancer struct {
	Addrs []string
}

func (*RandomBanlancer) Next

func (r *RandomBanlancer) Next() string

type RoundRobinBalancer

type RoundRobinBalancer struct {
	Addrs []string
	Cli   *clientv3.Client
}

func (*RoundRobinBalancer) Next

func (r *RoundRobinBalancer) Next() string

Jump to

Keyboard shortcuts

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