pool

package
v0.0.0-...-3927d6b Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnPool

type ConnPool struct {
	// contains filtered or unexported fields
}

func GetDefaultConnPool

func GetDefaultConnPool() *ConnPool

GetDefaultConnPool returns the connection pool.

func NewConnPool

func NewConnPool(size int, target string) (*ConnPool, error)

NewConnPool creates a new connection pool with the giver size.

func (*ConnPool) Close

func (p *ConnPool) Close()

Close close all connections in the pool.

func (*ConnPool) Get

func (p *ConnPool) Get() *grpc.ClientConn

Get gets a connection from the pool

Jump to

Keyboard shortcuts

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