http

package
v0.2.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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