Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartEndpointHealthCheck ¶
StartEndpointHealthCheck starts a health check on the specified address with the given options. It returns a channel that will emit true if the endpoint is healthy and false if the failure conditions Have been met.
Types ¶
type Option ¶
type Option func(o *healthCheckOptions)
Option is an a function that applies a health check option
func WithFailureThreshold ¶
WithFailureThreshold sets the failure threshold for the health check
func WithInitialDelay ¶
WithInitialDelay sets the initial delay for the health check
func WithInterval ¶
WithInterval sets the interval for the health check
func WithRequestTimeout ¶
WithRequestTimeout sets the request timeout for the health check
func WithSuccessStatusCode ¶
WithSuccessStatusCode sets the status code for the health check
Click to show internal directories.
Click to hide internal directories.