balancer

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancer

type Balancer interface {
	Pick(ctx context.Context, nodes []naming.Instance) (node *naming.Instance, done func(DoneInfo))
	Schema() string
}

Balancer is picker

type DoneInfo added in v0.1.11

type DoneInfo struct {
	Err     error
	Trailer map[string]string
}

DoneInfo is callback when rpc done

type Printable added in v0.1.13

type Printable interface {
	PrintStats()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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