Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manages cached gRPC connections to node agents.
func NewPool ¶
func NewPool(token string, transport security.ClientTransportConfig) *Pool
NewPool creates a new connection pool with the given auth token.
func (*Pool) GetClient ¶
GetClient returns a NodeAgent client for the given address, reusing connections. Automatically reconnects if the cached connection is in a failed state.
func (*Pool) ResetConnection ¶
ResetConnection drops the cached connection for an address, forcing a fresh dial on next use.
Click to show internal directories.
Click to hide internal directories.