health

package
v0.0.0-...-51ec7a6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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 Option

type Option func(*settings)

func WithMaxConcurrentChecks

func WithMaxConcurrentChecks(limit int) Option

type Registry

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

func New

func New(timeout time.Duration, options ...Option) (*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