httpcheck

package
v0.0.0-...-675665f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

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"`
	StatusCodesUnavailable []int    `json:"status_codes_degraded"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL