healthcheck

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgent = "HealthChecker/webhook-tester"
	Route     = "/healthz"
	Method    = http.MethodGet
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(defaultHttpPort uint16) *cli.Command

NewCommand creates `healthcheck` command.

Types

type HealthChecker

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

HealthChecker is a heals checker.

func NewHealthChecker

func NewHealthChecker(client ...httpClient) *HealthChecker

NewHealthChecker creates heals checker.

func (*HealthChecker) Check

func (c *HealthChecker) Check(ctx context.Context, httpPort uint) error

Check application using liveness probe.

Jump to

Keyboard shortcuts

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