pool

package
v0.0.63-rc27 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPoolNotFound = errors.New("pool not found")
)

Functions

This section is empty.

Types

type Caller

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

func NewCaller

func NewCaller() *Caller

func (*Caller) Call

func (c *Caller) Call(addr string, job RPCJob) error

func (*Caller) Cancel

func (c *Caller) Cancel(addr string) error

type JobWrap

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

type Pool

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

func NewPool

func NewPool(addr string) (*Pool, error)

func (*Pool) Call

func (a *Pool) Call(job RPCJob) error

func (*Pool) Cancel

func (a *Pool) Cancel()

func (*Pool) Less

func (p *Pool) Less(remote btree.Item) bool

type RPCJob

type RPCJob func(*grpc.ClientConn) error

Jump to

Keyboard shortcuts

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