client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 3

README

gRPC ClientConn Pool

ref: github.com/micro/go-plugins/client/grpc/grpc_pool.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

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

func NewPool

func NewPool(size int, ttl time.Duration) *Pool

func (*Pool) Get

func (p *Pool) Get(addr string, opts ...grpc.DialOption) (*poolConn, error)

func (*Pool) Put

func (p *Pool) Put(addr string, conn *poolConn, err error)

Jump to

Keyboard shortcuts

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