Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StatusMessage contains a map of messages to service response statuses StatusMessage = map[string]string{ health.StatusOK: " is ok", health.StatusWarning: " is degraded, but at least partially functioning", health.StatusCritical: " functionality is unavailable or non-functioning", } )
Functions ¶
func CreateCheckState ¶
func CreateCheckState(service string) (check health.CheckState)
CreateCheckState creates a new check state object
Types ¶
type Client ¶
Client represents an app client
func NewClientWithClienter ¶
NewClientWithClienter creates a new instance of Client with a given app name and url, and the provided clienter
type ErrInvalidAppResponse ¶
ErrInvalidAppResponse is returned when an app does not respond with a valid status
func (ErrInvalidAppResponse) Error ¶
func (e ErrInvalidAppResponse) Error() string
Error should be called by the user to print out the stringified version of the error
Click to show internal directories.
Click to hide internal directories.