health

package
v1.801.415 Latest Latest
Warning

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

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

Documentation

Overview

Package health probes an upstream's health endpoint (e.g. o11y's /v1/o11y/health) so the admin overview can report System Health honestly. A non-2xx or unreachable upstream reads as down — never masked.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client probes one health URL.

func New

func New(u string) *Client

New builds a health probe for url.

func (*Client) Ready

func (c *Client) Ready() bool

Ready reports whether a health URL is wired.

func (*Client) Up

func (c *Client) Up(ctx context.Context) (bool, error)

Up reports whether the health endpoint answers 2xx.

Jump to

Keyboard shortcuts

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