health

package
v0.230.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func NewHealthObserver

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

NewHealthObserver for HTTP.

func NewLivenessObserver

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

NewLivenessObserver for HTTP.

func NewReadinessObserver

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

NewReadinessObserver for HTTP.

func NewRegistrations

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

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
JackTT - Gopher 🇻🇳