Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConnectionWaitTimeout error = errors.New("connection queue wait timeout")
)
Functions ¶
This section is empty.
Types ¶
type ClientCon ¶
type ClientCon struct { Conn *grpc.ClientConn // contains filtered or unexported fields }
type ClientPool ¶
type ClientPool struct {
// contains filtered or unexported fields
}
func NewClientPool ¶
func NewClientPool(config *PoolConfig) *ClientPool
func (*ClientPool) Get ¶
func (cp *ClientPool) Get() (*ClientCon, error)
func (*ClientPool) GetNumberOfConnectionsInUse ¶ added in v0.1.3
func (cp *ClientPool) GetNumberOfConnectionsInUse() int
func (*ClientPool) GetNumberOfIdleConnections ¶ added in v0.1.3
func (cp *ClientPool) GetNumberOfIdleConnections() int
func (*ClientPool) GetNumberOfOpenConnections ¶
func (cp *ClientPool) GetNumberOfOpenConnections() int
type PoolConfig ¶
Click to show internal directories.
Click to hide internal directories.