probe

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Readiness = iota
	Aliveness
)

Variables

This section is empty.

Functions

func New

func New(router *http.ServeMux, probes ...Probe) http.Handler

func Run added in v0.1.10

func Run(port string, handler http.Handler) error

Types

type Probe

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

func WithProbe

func WithProbe(probeType Type, handler func() error) Probe

type Type

type Type int

Jump to

Keyboard shortcuts

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