Categorygithub.com/hunyxv/grpcpool
modulepackage
0.0.1
Repository: https://github.com/hunyxv/grpcpool.git
Documentation: pkg.go.dev

# README

grpcpool

PkgGoDev

grpc pool

# Packages

No description provided by the author

# Functions

NewPool create a grpc pool.
WithCleanIntervalTime set interval time to clean up idle connections or create new tcp connection.
WithClientIdleTimeout .
WithDebug .
WithGrpcPoolSize returns a Option which sets the value for pool size.
WithLogger returns a Option which sets the value for pool logger.
WithMaxIdle set number of idle connections in the pool.
WithMaxStreamsClient returns a Option which set the value for http2 client maxConcurrentStreams.
WithNonblocking returns a Option which Pool.Get can never be blocked.

# Constants

CLOSED represents that the pool is closed.
OPENED represents that the pool is opened.

# Variables

ErrConnClosed grpc 连接已关闭.
ErrPoolClosed pool 连接已关闭.
ErrPoolOverload 连接池资源已满载.

# Structs

Pool grpc 连接池.

# Interfaces

Logger is used for logging formatted messages.
LogicConn grpc 逻辑连接接口.

# Type aliases

Builder 创建conn的构造函数.
Option .