healthkit

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

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

func NewAggregator

func NewAggregator(cacheTTL time.Duration) *Aggregator

func (*Aggregator) Handler

func (a *Aggregator) Handler(kind Kind) http.HandlerFunc

func (*Aggregator) Register

func (a *Aggregator) Register(checks ...Check)

type Check

type Check struct {
	Name    string
	Kind    Kind
	Timeout time.Duration
	Fn      func(ctx context.Context) error
}

type Kind

type Kind int
const (
	Liveness Kind = iota
	Readiness
	Startup
)

Jump to

Keyboard shortcuts

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