p2c

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "p2c"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct{}

Builder is p2c Builder

func NewBuilder

func NewBuilder() *Builder

NewBuilder creates a new weighted-roundrobin balancer builder.

func (*Builder) Build

func (*Builder) Build(ctx context.Context, nodes []naming.Instance, errHandler func(error) bool) balancer.Balancer

Build p2c

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