grpc

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 5 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 {
	sync.Mutex
	// contains filtered or unexported fields
}

ConnPool is a gRPC client connection pool.

func NewConnPool

func NewConnPool() *ConnPool

NewConnPool creates a default gRPC client connection pool.

func (*ConnPool) Close

func (c *ConnPool) Close()

Close closes all the connection in the pool.

func (*ConnPool) Get

func (c *ConnPool) Get(target string) (*grpc.ClientConn, error)

Get returns a gRPC Client Connection from the pool of the given target.

Jump to

Keyboard shortcuts

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