Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoConnection = fmt.Errorf("No connection exists")
)
Functions ¶
func TestConnection ¶
testConnection tests if we can run an Echo query on a connection.
Types ¶
type Pool ¶
type Pool struct { Addr string // contains filtered or unexported fields }
"Pool" is used to manage the grpc client connection(s) for communicating with other worker instances. Right now it just holds one of them.
func (*Pool) AddOwner ¶
func (p *Pool) AddOwner()
AddOwner adds 1 to the refcount for the pool (atomically).
func (*Pool) Get ¶
func (p *Pool) Get() *grpc.ClientConn
Get returns the connection to use from the pool of connections.
Click to show internal directories.
Click to hide internal directories.