shared

package
v0.0.0-...-137c36e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClientConnClosing = status.Error(codes.Canceled, "grpc: the client connection is closing")
View Source
var ErrClientConnNotOk = status.Error(codes.Unavailable, "grpc: error - connection not ok")

Functions

This section is empty.

Types

type ClientConn

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

func (*ClientConn) Connection

func (c *ClientConn) Connection() *grpc.ClientConn

func (*ClientConn) Return

func (c *ClientConn) Return()

type Pool

type Pool struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(factory grpcpool.ConnectionFactory, idleTimeout time.Duration) *Pool

func (*Pool) Close

func (p *Pool) Close()

func (*Pool) Get

Jump to

Keyboard shortcuts

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