httpprobe

package
v4.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTimeoutClient

func NewTimeoutClient(dialTimeout, responseTimeout int, tlsconfig *tls.Config) *http.Client

Types

type HTTPChecker

type HTTPChecker interface {
	Check(io.Reader) error
}

type HTTPOptions

type HTTPOptions struct {
	Username           string
	Password           string
	Checker            HTTPChecker
	ExpectedStatusCode int
	DialTimeout        int
	ResponseTimeout    int
	TLSConfig          *tls.Config
	// contains filtered or unexported fields
}

type HTTPProbe

type HTTPProbe struct {
	// contains filtered or unexported fields
}

func NewHTTPProbe

func NewHTTPProbe(name, endpoint string, opts HTTPOptions) HTTPProbe

func (HTTPProbe) Check

func (p HTTPProbe) Check() error

func (HTTPProbe) Name

func (p HTTPProbe) Name() string

Jump to

Keyboard shortcuts

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