grpcpool

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT 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 (p *GRPCPool) Get(addr string) (rpc.TaskClient, error)

func (*GRPCPool) Release

func (p *GRPCPool) Release(addr string)

释放连接

Jump to

Keyboard shortcuts

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