lb

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Address           string
	Label             string
	HandShakeDuration time.Duration
}

todo: move to internal/lb

func (*Node) Clone

func (n *Node) Clone() *Node

type RoundRobin

type RoundRobin interface {
	Next() *Node
}

RoundRobin is an interface for representing round-robin balancing.

func NewRoundRobin

func NewRoundRobin(nodeList []*Node) RoundRobin

Jump to

Keyboard shortcuts

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