p2c

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 6 Imported by: 12

Documentation

Index

Constants

View Source
const (

	// Name is balancer name
	Name = "p2c"
)

Variables

This section is empty.

Functions

func New

func New(opts ...Option) selector.Selector

New creates a p2c selector.

Types

type Balancer

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

Balancer is p2c selector.

func (*Balancer) Pick

Pick pick a node.

type Option

type Option func(o *options)

Option is random builder option.

func WithFilter

func WithFilter(filters ...selector.Filter) Option

WithFilter with select filters

Jump to

Keyboard shortcuts

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