Documentation
¶
Index ¶
- type AttrAddr
- type AttrCreds
- type AttrName
- type AttrRegisterFuncs
- type Attributer
- type Client
- func (my Client) Connection() Client
- func (my Client) GetAddr() string
- func (my Client) GetConn() *grpc.ClientConn
- func (my Client) GetCreds() credentials.TransportCredentials
- func (my Client) GetOnline() bool
- func (Client) New(attrs ...Attributer) Client
- func (my Client) Offline() Client
- func (my Client) Reconnection() Client
- func (my Client) Registers(fn func(conn *grpc.ClientConn) error) Client
- func (my Client) SetAttrs(attrs ...Attributer) Client
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (Client) GetConn ¶
func (my Client) GetConn() *grpc.ClientConn
func (Client) GetCreds ¶
func (my Client) GetCreds() credentials.TransportCredentials
func (Client) New ¶
func (Client) New(attrs ...Attributer) Client
func (Client) Reconnection ¶
func (Client) SetAttrs ¶
func (my Client) SetAttrs(attrs ...Attributer) Client
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (Pool) AppendClients ¶
func (Pool) GetClientByName ¶
func (Pool) SetClients ¶
Click to show internal directories.
Click to hide internal directories.