Documentation
¶
Index ¶
- Constants
- Variables
- func RetryWithBackoff(ctx context.Context, timeout time.Duration, fn func() error) error
- type CheckStatusResponse
- type Client
- func (c *Client) CheckStatus(ctx context.Context) (CheckStatusResponse, error)
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) ConnectWithTimeout(ctx context.Context, timeout time.Duration) error
- func (c *Client) InitForcefulShutdown(ctx context.Context) (CheckStatusResponse, error)
- func (c *Client) InitGracefulShutdown(ctx context.Context, req api.InitGracefulShutdownRequest) (CheckStatusResponse, error)
- type Dialer
- type Option
Constants ¶
View Source
const (
DefaultConnectTimeout = 5 * time.Second
)
Variables ¶
View Source
var (
ErrRetryTimeoutExceeded = errors.New("retry timeout exceeded")
)
Functions ¶
Types ¶
type CheckStatusResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckStatus ¶
func (c *Client) CheckStatus(ctx context.Context) (CheckStatusResponse, error)
func (*Client) ConnectWithTimeout ¶
func (*Client) InitForcefulShutdown ¶
func (c *Client) InitForcefulShutdown(ctx context.Context) (CheckStatusResponse, error)
func (*Client) InitGracefulShutdown ¶
func (c *Client) InitGracefulShutdown(ctx context.Context, req api.InitGracefulShutdownRequest) (CheckStatusResponse, error)
Click to show internal directories.
Click to hide internal directories.