Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a grpc connection to a core instance.
func (*Client) GetRPCClient ¶
func (c *Client) GetRPCClient() pb.CoreRPCClient
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func NewCoreRPCClientPool ¶
func NewCoreRPCClientPool(ctx context.Context, config *PoolConfig) (*Pool, error)
func (*Pool) GetClient ¶
func (p *Pool) GetClient() pb.CoreRPCClient
GetClient returns the first alive client, or the first client when none are alive.
type PoolConfig ¶
type PoolConfig struct {
EruAddrs []string
Auth types.AuthConfig
ConnectionTimeout time.Duration
}
Click to show internal directories.
Click to hide internal directories.