client

package
v3.2.20 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grpc

type Grpc struct {
	*grpc.ClientConn
}

Grpc ...

func NewGrpc

func NewGrpc() *Grpc

NewGrpc 缓存

func (*Grpc) Store

func (proxy *Grpc) Store(client *grpc.ClientConn)

Store 设置写库

type Proxy

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

Proxy 代理池

func NewProxy

func NewProxy() *Proxy

NewProxy 代理池

func (*Proxy) LoadGrpc

func (proxypool *Proxy) LoadGrpc(group string) *grpc.ClientConn

LoadGrpc Load 获取分组

func (*Proxy) StoreGrpc

func (proxypool *Proxy) StoreGrpc(group string, proxy *Grpc)

StoreGrpc Store 设置组

Jump to

Keyboard shortcuts

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