grpcpool

package
v0.0.0-...-fdfd418 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pool = &GRPCPool{
		conns: make(map[string]*Client),
	}
)

Functions

This section is empty.

Types

type Client

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

type GRPCPool

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

func (*GRPCPool) Get

func (pool *GRPCPool) Get(addr string) (pb.TaskClient, error)

func (*GRPCPool) Release

func (pool *GRPCPool) Release(addr string)

释放连接

Jump to

Keyboard shortcuts

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