pool

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxPoolConn = 20
)

grpc pool constants

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCPool

type GRPCPool struct {
	*grpcpool.Pool
	// contains filtered or unexported fields
}

GRPCPool holds all the shared state for GRPC pool

func NewGRPCPool

func NewGRPCPool(addr string, maxConnections int, creds credentials.TransportCredentials) *GRPCPool

NewGRPCPool returns new auth pool

func (*GRPCPool) GetConnection

func (gp *GRPCPool) GetConnection(ctx context.Context) (*grpcpool.ClientConn, error)

GetConnection returns new connection from grpc pool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL