Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { Start(chan error) Stop() }
Agent executes a health check a given interval.
func BuildAgent ¶
func BuildAgent(conf config.HealthCheck) (Agent, error)
BuildAgent constructs a health check agent using the given configuration.
func BuildAgents ¶
func BuildAgents(confs []config.HealthCheck) ([]Agent, error)
BuildAgents constructs health check agents.
type Check ¶
type Check interface { // Execute the health check and return an error on failure. Execute() error }
Check is an interface for performing a health check.
func NewCommand ¶
func NewCommand(conf config.HealthCheck) (Check, error)
NewCommand creates a new executable health check.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command performs a health check by running a command and inspecting the results.
Click to show internal directories.
Click to hide internal directories.