grpcClient

package
v1.57.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrAddr

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

func Addr

func Addr(addr string) AttrAddr

func (AttrAddr) Register

func (my AttrAddr) Register(client *Client)

type AttrCreds

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

type AttrName

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

func Name

func Name(name string) AttrName

func (AttrName) Register

func (my AttrName) Register(client *Client)

type AttrRegisterFuncs

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

func RegisterFuncs

func RegisterFuncs(funcs ...func(conn *grpc.ClientConn) error) AttrRegisterFuncs

func (AttrRegisterFuncs) Register

func (my AttrRegisterFuncs) Register(client *Client)

type Attributer

type Attributer interface {
	Register(client *Client)
}

type Client

type Client struct {
	Error error
	// contains filtered or unexported fields
}

func (Client) Connection

func (my Client) Connection() Client

func (Client) GetAddr

func (my Client) GetAddr() string

func (Client) GetConn

func (my Client) GetConn() *grpc.ClientConn

func (Client) GetCreds

func (my Client) GetCreds() credentials.TransportCredentials

func (Client) GetOnline

func (my Client) GetOnline() bool

func (Client) New

func (Client) New(attrs ...Attributer) Client

func (Client) Offline

func (my Client) Offline() Client

func (Client) Reconnection

func (my Client) Reconnection() Client

func (Client) Registers

func (my Client) Registers(fn func(conn *grpc.ClientConn) error) Client

func (Client) SetAttrs

func (my Client) SetAttrs(attrs ...Attributer) Client

type Pool

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

func (Pool) AppendClients

func (my Pool) AppendClients(clients ...Client) Pool

func (Pool) GetClientByName

func (my Pool) GetClientByName(name string) Client

func (Pool) Once

func (Pool) Once(client ...Client) Pool

func (Pool) SetClients

func (Pool) SetClients(clients ...Client) Pool

Jump to

Keyboard shortcuts

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