grpcpool

package
v0.0.0-...-ab91138 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 8 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