lb

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node added in v1.1.0

type Node struct {
	Address           string
	HandShakeDuration time.Duration
}

func (*Node) Clone added in v1.1.5

func (n *Node) Clone() *Node

func (*Node) GetAddrHost added in v1.1.5

func (n *Node) GetAddrHost() (string, error)

NOTE for (https/ws/wss)://xxx.com -> xxx.com

type RoundRobin added in v1.0.6

type RoundRobin interface {
	Next() *Node
	GetAll() []*Node
}

RoundRobin is an interface for representing round-robin balancing.

func NewRoundRobin added in v1.1.0

func NewRoundRobin(nodeList []*Node) RoundRobin

Jump to

Keyboard shortcuts

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