Documentation ¶
Index ¶
- type Client
- func (cli *Client) Close() error
- func (cli *Client) GetConfiguration() (*pb.ClientResponse, error)
- func (cli *Client) GetConfigurationAsync(callback func(*pb.ClientResponse, error))
- func (cli *Client) Query(command []byte) (*pb.ClientResponse, error)
- func (cli *Client) QueryAsync(command []byte, callback func(*pb.ClientResponse, error))
- func (cli *Client) SetConfiguration(cfg *pb.Configuration) (*pb.ClientResponse, error)
- func (cli *Client) SetConfigurationAsync(cfg *pb.Configuration, callback func(*pb.ClientResponse, error))
- func (cli *Client) Write(command []byte) (*pb.ClientResponse, error)
- func (cli *Client) WriteAsync(command []byte, callback func(*pb.ClientResponse, error))
- type DefaultRetryPolicy
- type Params
- type RetryPolicy
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
}
func (*Client) GetConfiguration ¶
func (cli *Client) GetConfiguration() (*pb.ClientResponse, error)
func (*Client) GetConfigurationAsync ¶
func (cli *Client) GetConfigurationAsync(callback func(*pb.ClientResponse, error))
func (*Client) QueryAsync ¶
func (cli *Client) QueryAsync(command []byte, callback func(*pb.ClientResponse, error))
func (*Client) SetConfiguration ¶
func (cli *Client) SetConfiguration(cfg *pb.Configuration) (*pb.ClientResponse, error)
func (*Client) SetConfigurationAsync ¶
func (cli *Client) SetConfigurationAsync(cfg *pb.Configuration, callback func(*pb.ClientResponse, error))
func (*Client) WriteAsync ¶
func (cli *Client) WriteAsync(command []byte, callback func(*pb.ClientResponse, error))
type DefaultRetryPolicy ¶
type DefaultRetryPolicy struct{}
func (DefaultRetryPolicy) GetTimeout ¶
func (_ DefaultRetryPolicy) GetTimeout(retrynum uint) time.Duration
func (DefaultRetryPolicy) ShouldRetry ¶
func (_ DefaultRetryPolicy) ShouldRetry(retrynum uint, err error) bool
Click to show internal directories.
Click to hide internal directories.