Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + var ErrAlreadyClosed = errors.New("grpc pool: the connection was already closed") + var ErrClosed = errors.New("grpc pool: client pool is closed") + var ErrFullPool = errors.New("grpc pool: closing a ClientConn into a full pool") + var ErrTimeout = errors.New("grpc pool: client pool timed out") + type ClientConn struct + func (c *ClientConn) Close() error + func (c *ClientConn) Unhealthy() + type Factory func() (*grpc.ClientConn, error) + type FactoryWithContext func(context.Context) (*grpc.ClientConn, error) + type Pool struct + func New(factory Factory, init, capacity int, idleTimeout time.Duration, ...) (*Pool, error) + func NewWithContext(ctx context.Context, factory FactoryWithContext, init, capacity int, ...) (*Pool, error) + func (p *Pool) Capacity() int + func (p *Pool) Close() + func (p *Pool) Get(ctx context.Context) (*ClientConn, error) + func (p *Pool) IsClosed() bool