Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP interface { HealthCheckHTTP(uri, method string, headers map[string][]string, body string, codes []int, timeout time.Duration) error // HealthCheckTCP attempts to connect to a raw socket at the given address // if a connection is established the health check is marked as a success // if failed the check will retry until the timeout occurs HealthCheckTCP(uri string, timeout time.Duration) error // Do executes a HTTP request and returns the response Do(r *http.Request) (*http.Response, error) }
type HTTPImpl ¶
type HTTPImpl struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.