Documentation
¶
Index ¶
- Constants
- type Client
- type ClientOpt
- type HTTPClient
- func (c HTTPClient) AddIP(ctx context.Context, ip string, checks ...models.Healthcheck) (IP, error)
- func (c HTTPClient) GetIP(ctx context.Context, id string) (IP, error)
- func (c HTTPClient) ListIPs(ctx context.Context) ([]IP, error)
- func (c HTTPClient) RemoveIP(ctx context.Context, id string) error
- func (c HTTPClient) TryGetLock(ctx context.Context, id string) error
- type IP
Constants ¶
View Source
const ( Activated = "ACTIVATED" Standby = "STANDBY" Failing = "FAILING" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func NewHTTPClient ¶
func NewHTTPClient(opts ...ClientOpt) HTTPClient
func (HTTPClient) AddIP ¶
func (c HTTPClient) AddIP(ctx context.Context, ip string, checks ...models.Healthcheck) (IP, error)
func (HTTPClient) TryGetLock ¶
func (c HTTPClient) TryGetLock(ctx context.Context, id string) error
Click to show internal directories.
Click to hide internal directories.