health

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func NewHealthObserver added in v0.5.0

func NewHealthObserver(healthServer *server.Server) *http.HealthObserver

NewHealthObserver for HTTP.

func NewLivenessObserver added in v0.5.0

func NewLivenessObserver(healthServer *server.Server) *http.LivenessObserver

NewLivenessObserver for HTTP.

func NewReadinessObserver added in v0.5.0

func NewReadinessObserver(healthServer *server.Server) *http.ReadinessObserver

NewReadinessObserver for HTTP.

func NewRegistrations added in v0.5.0

func NewRegistrations(params Params) health.Registrations

NewRegistrations for health.

Types

type Config

type Config struct {
	Duration string `yaml:"duration,omitempty" json:"duration,omitempty" toml:"duration,omitempty"`
	Timeout  string `yaml:"timeout,omitempty" json:"timeout,omitempty" toml:"timeout,omitempty"`
}

Config for health.

type Params added in v0.5.0

type Params struct {
	fx.In

	Health *Config
}

Params for health.

Jump to

Keyboard shortcuts

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