healthcheck

package
v1.0.12758-54d8f47 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Overview

Package healthcheck contains a simple healthcheck handler. In addition to supporting the healthchecks that various other packages in ex produce, it also allows access to the Go runtime's standard pprof functionality.

Package healthcheck implements the output admin API such as health checks and runtime profiling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, addr string, sys *system.System) (*httpserver.HTTPServer, error)

Types

type API

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

func New

func New(ctx context.Context, checked []system.HealthChecker) (*API, error)

func (*API) Handler

func (a *API) Handler() http.Handler

Jump to

Keyboard shortcuts

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