Documentation
¶
Index ¶
- type Client
- func (c *Client) RecoverCurrentPeer(ctx context.Context) (*hookdeckgosdk.RecoverCurrentPeerResponse, error)
- func (c *Client) RemovePeer(ctx context.Context, peerId int, request *hookdeckgosdk.RemovePeerRequest) (*hookdeckgosdk.RemovePeerResponse, error)
- func (c *Client) Status(ctx context.Context) (*hookdeckgosdk.ClusterStatusResponse, error)
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 NewClient ¶
func NewClient(opts ...core.ClientOption) *Client
func (*Client) RecoverCurrentPeer ¶
func (c *Client) RecoverCurrentPeer(ctx context.Context) (*hookdeckgosdk.RecoverCurrentPeerResponse, error)
func (*Client) RemovePeer ¶
func (c *Client) RemovePeer(ctx context.Context, peerId int, request *hookdeckgosdk.RemovePeerRequest) (*hookdeckgosdk.RemovePeerResponse, error)
Tries to remove peer from the cluster. Will return an error if peer has shards on it.
Id of the peer
func (*Client) Status ¶
func (c *Client) Status(ctx context.Context) (*hookdeckgosdk.ClusterStatusResponse, error)
Get information about the current state and composition of the cluster
Click to show internal directories.
Click to hide internal directories.