loadbalance

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromConfig

func LoadFromConfig()

func NextNode

func NextNode(chain string) *aggregator.Node

func SetNodes

func SetNodes(chain string, nodes []aggregator.Node)

Types

type WrSelector

type WrSelector struct {
	// contains filtered or unexported fields
}

WrSelector weighted-random selector

func (*WrSelector) NextNode

func (s *WrSelector) NextNode() *aggregator.Node

func (*WrSelector) SetNodes

func (s *WrSelector) SetNodes(nodes []aggregator.Node)

Jump to

Keyboard shortcuts

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