Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates `healthcheck` command.
Types ¶
type HTTPHealthChecker ¶
type HTTPHealthChecker struct {
// contains filtered or unexported fields
}
HTTPHealthChecker is HTTP probe checker.
func NewHTTPHealthChecker ¶
func NewHTTPHealthChecker(opts ...HealthCheckerOption) *HTTPHealthChecker
type HealthCheckerOption ¶
type HealthCheckerOption func(*HTTPHealthChecker)
HealthCheckerOption allows you to change some settings of the checker.
func WithHttpClient ¶
func WithHttpClient(c httpClient) HealthCheckerOption
WithHttpClient allows to set http client.
func WithLiveEndpoint ¶
func WithLiveEndpoint(endpoint string) HealthCheckerOption
WithLiveEndpoint set the endpoint to check.
Click to show internal directories.
Click to hide internal directories.