Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrClosed is the error when the client pool is closed ErrClosed = errors.New("grpc pool: client pool is closed") // ErrTimeout is the error when the client pool timed out ErrTimeout = errors.New("grpc pool: client pool timed out") // ErrAlreadyClosed is the error when the client conn was already closed ErrAlreadyClosed = errors.New("grpc pool: the connection was already closed") // ErrFullPool is the error when the pool is already full ErrFullPool = errors.New("grpc pool: closing a ClientConn into a full pool") )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { *grpc.ClientConn // contains filtered or unexported fields }
Conn is the wrapper for a grpc client conn.
type Factory ¶
type Factory func() (*grpc.ClientConn, error)
Factory is a function type creating a grpc client
Click to show internal directories.
Click to hide internal directories.