httpprobe

package
v5.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 7 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(_ context.Context) 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