http

package
v1.245.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(params RegisterParams) error

Register health for HTTP.

Types

type HealthObserver

type HealthObserver struct {
	*subscriber.Observer
}

HealthObserver for HTTP.

type LivenessObserver

type LivenessObserver struct {
	*subscriber.Observer
}

LivenessObserver for HTTP.

type ReadinessObserver

type ReadinessObserver struct {
	*subscriber.Observer
}

ReadinessObserver for HTTP.

type RegisterParams added in v1.66.0

type RegisterParams struct {
	fx.In

	Mux        *http.ServeMux
	Health     *HealthObserver
	Liveness   *LivenessObserver
	Readiness  *ReadinessObserver
	Marshaller *json.Marshaller
	Version    env.Version
}

RegisterParams health for HTTP.

Jump to

Keyboard shortcuts

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