health

package
v0.0.0-...-d364ca2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package health provides cheap liveness and dependency readiness endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check func(context.Context) error

type Registry

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

func New

func New(timeout time.Duration) (*Registry, error)

func (*Registry) HealthHandler

func (registry *Registry) HealthHandler() http.Handler

func (*Registry) ReadyHandler

func (registry *Registry) ReadyHandler() http.Handler

func (*Registry) Register

func (registry *Registry) Register(name string, check Check) error

Jump to

Keyboard shortcuts

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