random

package
v0.0.0-...-157c77b Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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