http

package
v0.0.0-...-1e85a6b Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithExpectedStatusCode

func WithExpectedStatusCode(code int) func(*Prober)

func WithInterval

func WithInterval(interval time.Duration) func(*Prober)

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) func(*Prober)

func WithTimeout

func WithTimeout(timeout time.Duration) func(*Prober)

Types

type Prober

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

func NewProber

func NewProber(
	url string,
	opts ...func(p *Prober),
) *Prober

func (*Prober) Once

func (p *Prober) Once(ctx context.Context) (bool, error)

Jump to

Keyboard shortcuts

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