health

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelContextIfPalomaIsDown

func CancelContextIfPalomaIsDown(ctx context.Context, ps PalomaStatuser) context.Context

func StartHTTPServer

func StartHTTPServer(
	ctx context.Context,
	port int,
	pid int,
	appVersion string,
	commit string,
)

func WaitForPaloma

func WaitForPaloma(ctx context.Context, ps PalomaStatuser) error

Types

type BootChecker added in v0.8.1

type BootChecker interface {
	BootHealthCheck(ctx context.Context) error
}

type Checker

type Checker interface {
	HealthCheck(ctx context.Context) error
}

type Errors

type Errors struct {
	All whoops.Group
}

func (*Errors) Error

func (e *Errors) Error() string

type PalomaStatuser

type PalomaStatuser interface {
	PalomaStatus(ctx context.Context) error
}

type Service

type Service struct {
	Checks []Checker
}

func (Service) BootChecker added in v0.8.1

func (s Service) BootChecker(ctx context.Context)

func (Service) Check

func (s Service) Check(ctx context.Context)

func (Service) HealthCheckInBackground

func (s Service) HealthCheckInBackground(
	ctx context.Context,
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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