Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
Close() error
Get() *grpc.ClientConn
}
type ConnectionPool ¶
type ConnectionPool struct {
// contains filtered or unexported fields
}
func NewConnectionPool ¶ added in v0.0.2
func NewConnectionPool(activeCount int, dialFunc func() (*grpc.ClientConn, error)) (*ConnectionPool, error)
func (*ConnectionPool) Close ¶
func (self *ConnectionPool) Close()
func (*ConnectionPool) Get ¶
func (self *ConnectionPool) Get() (Connection, error)
type GrpcConnection ¶
type GrpcConnection struct {
GrpcConn *grpc.ClientConn
// contains filtered or unexported fields
}
func (*GrpcConnection) Close ¶
func (self *GrpcConnection) Close() error
func (*GrpcConnection) Get ¶
func (self *GrpcConnection) Get() *grpc.ClientConn
type Pool ¶
type Pool interface {
Get() (Connection, error)
Close()
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.