Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidStatusCode = errors.New("invalid status code")
ErrInvalidStatusCode when we have errors that are not in the 200 range.
Functions ¶
This section is empty.
Types ¶
type DBChecker ¶
type DBChecker struct {
// contains filtered or unexported fields
}
DBChecker for SQL.
func NewDBChecker ¶
NewDBChecker for SQL.
type HTTPChecker ¶
type HTTPChecker struct {
// contains filtered or unexported fields
}
HTTPChecker for a URL.
func NewHTTPChecker ¶
func NewHTTPChecker(url string, rt http.RoundTripper, t time.Duration) *HTTPChecker
NewHTTPChecker with URL and client.
type ReadyChecker ¶
type ReadyChecker struct {
// contains filtered or unexported fields
}
ReadyChecker for when prepared for something.
func NewReadyChecker ¶
func NewReadyChecker(err error) *ReadyChecker
NewReadyChecker with a specific error.
type TCPChecker ¶
type TCPChecker struct {
// contains filtered or unexported fields
}
TCPChecker for an address.
func NewTCPChecker ¶
func NewTCPChecker(address string, timeout time.Duration) *TCPChecker
NewTCPChecker for address.
func NewTCPCheckerWithDialer ¶
NewTCPCheckerWithDialer for address.
Click to show internal directories.
Click to hide internal directories.