prober

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(_ context.Context, i Interface)

Go launches the prober process, and does not return. On errors it terminates the process.

Types

type Func

type Func func(context.Context) error

Func is a convenience wrapper for turning a function into an Interface.

func (Func) Probe

func (pf Func) Probe(ctx context.Context) error

Probe implements Interface

type Interface

type Interface interface {
	// Probe performs a single probe and is passed the HTTP request context.
	Probe(context.Context) error
}

Interface is implemented by Chainguard probers to encapsulate their probing logic

Jump to

Keyboard shortcuts

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