Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultBufSize is the maximum size of the captured // check output by default. Prevents an enormous buffer // from being captured DefaultBufSize = 4 * 1024 // UserAgent is the value of the User-Agent header // for HTTP health checks. UserAgent = "Consul Health Check" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHealthCheck ¶
type HTTPHealthCheck struct {
// contains filtered or unexported fields
}
HTTPHealthCheck http check config
func DefaultHTTPHealthCheck ¶
func DefaultHTTPHealthCheck() *HTTPHealthCheck
DefaultHTTPCheck return default http config
func NewHTTPHealthCheck ¶
func NewHTTPHealthCheck() *HTTPHealthCheck
NewHTTPHealthCheck new the instance
func (*HTTPHealthCheck) DoHealthCheck ¶
func (c *HTTPHealthCheck) DoHealthCheck() (resHealthCheck *view.ResHealthCheck, err error)
DoHealthCheck check is invoked periodically to perform the HTTP check
func (*HTTPHealthCheck) LoadExtConfig ¶
func (c *HTTPHealthCheck) LoadExtConfig(extConfig string) (err error)
LoadExtConfig parse the config
Click to show internal directories.
Click to hide internal directories.