random

package
v0.0.0-...-a23f37e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRandomBalancer

func NewRandomBalancer() registry.Balancer

Types

type RandomBalancer

type RandomBalancer struct {
}

func (RandomBalancer) Pick

func (b RandomBalancer) Pick(ctx context.Context, nodes []registry.Node) (selected registry.Node, err error)

Jump to

Keyboard shortcuts

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