rpc

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceConnectPool

type BalanceConnectPool struct {
	Clients *ring.Ring
	Balance int
	// contains filtered or unexported fields
}

type ClientTarget

type ClientTarget struct {
	Conn *grpc.ClientConn
	// contains filtered or unexported fields
}

type Clients

type Clients struct {
	Targets []string

	Ctx context.Context
	// contains filtered or unexported fields
}

func NewClients

func NewClients(ctx context.Context, targets []string, except *string, newF NewClientF, poolCnt int) *Clients

func (*Clients) GetClient added in v0.0.45

func (c *Clients) GetClient(target string) (any, *grpc.ClientConn)

连接池功能去掉了。。把游戏卡住了。

func (*Clients) ShutDown

func (c *Clients) ShutDown()

type NewClientF

type NewClientF func(*grpc.ClientConn) any

Jump to

Keyboard shortcuts

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