p2c

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "p2c"
)

Variables

This section is empty.

Functions

func New

func New(errHandler func(error) bool) balancer.Balancer

New p2c

Types

type P2cPicker

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

func (*P2cPicker) Pick

func (p *P2cPicker) Pick(ctx context.Context, nodes []naming.Instance) (*naming.Instance, func(di balancer.DoneInfo))

func (*P2cPicker) PrintStats

func (p *P2cPicker) PrintStats()

func (*P2cPicker) Schema

func (p *P2cPicker) Schema() string

Jump to

Keyboard shortcuts

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