Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoHTTPProbe ¶
func DoHTTPProbe(url string, client HTTPGetInterface) (probe.Status, error)
DoHTTPProbe checks if a GET request to the url succeeds. If the HTTP response code is successful (i.e. 400 > code >= 200), it returns Success. If the HTTP response code is unsuccessful or HTTP communication fails, it returns Failure. This is exported because some other packages may want to do direct HTTP probes.
Types ¶
type HTTPProber ¶
type HTTPProber struct {
// contains filtered or unexported fields
}
func New ¶
func New() HTTPProber
Click to show internal directories.
Click to hide internal directories.