random

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Random

type Random struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(enableWeight bool) *Random

func (*Random) Add

func (r *Random) Add(ep endpoint.Endpoint) error

func (*Random) Refresh

func (r *Random) Refresh(eps []endpoint.Endpoint)

func (*Random) Remove

func (r *Random) Remove(ep endpoint.Endpoint) error

func (*Random) Select

func (r *Random) Select(_ selector.Message) (endpoint.Endpoint, error)

Jump to

Keyboard shortcuts

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