pool

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 7 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) (pb.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