Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHealthcheck ¶
type HTTPHealthcheck struct { Method string `json:"method"` URI string `json:"uri"` Options []string `json:"options"` StatusCodesAvailable []int `json:"status_codes_available"` StatusCodesDegraded []int `json:"status_codes_unavailable"` }
HTTPHealthcheck is a single node healthcheck on an endpoint which looks at the HTTP response code when querying.
func Deserialize ¶
func Deserialize(data []byte) (*HTTPHealthcheck, error)
func (HTTPHealthcheck) RunSynchronously ¶
func (h HTTPHealthcheck) RunSynchronously() result.HealthcheckStepResult
RunSynchronously will run the test and return the results immediately.
func (*HTTPHealthcheck) Serialize ¶
func (h *HTTPHealthcheck) Serialize() ([]byte, error)
type HTTPHealthcheckResult ¶
type HTTPHealthcheckResult struct { TimeStarted time.Time Duration time.Duration StatusCode int // contains filtered or unexported fields }
func (HTTPHealthcheckResult) Status ¶
func (r HTTPHealthcheckResult) Status() result.HealthcheckResponse
Click to show internal directories.
Click to hide internal directories.