Categorygithub.com/chenyunchen/grpc-go-pool
modulepackage
1.2.3
Repository: https://github.com/chenyunchen/grpc-go-pool.git
Documentation: pkg.go.dev

# README

grpc-go-pool

GoDoc

Fork for DNS client pool to reuse connections

This package aims to provide an easy to use and lightweight GRPC connection pool.

Please note that the goal isn't to replicate the client-side load-balancing feature of the official grpc package: the goal is rather to have multiple connections established to one endpoint (which can be server-side load-balanced).

# Functions

New creates a new clients pool with the given initial and maximum capacity, and the timeout for the idle clients.

# Variables

ErrAlreadyClosed is the error when the client conn was already closed.
ErrClosed is the error when the client pool is closed.
ErrFullPool is the error when the pool is already full.
ErrTimeout is the error when the client pool timed out.

# Structs

ClientConn is the wrapper for a grpc client conn.
Pool is the grpc client pool.

# Type aliases

Factory is a function type creating a grpc client.