p2c

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

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

Variables

This section is empty.

Functions

func New

func New() selector.Selector

New creates a p2c selector.

func NewBuilder

func NewBuilder() selector.Builder

NewBuilder returns a selector builder with p2c balancer

Types

type Balancer

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

Balancer is p2c selector.

func (*Balancer) Pick

Pick pick a node.

type Builder

type Builder struct{}

Builder is p2c builder

func (*Builder) Build

func (b *Builder) Build() selector.Balancer

Build creates Balancer

Jump to

Keyboard shortcuts

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