tools

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

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

HealthCheck has methods for readiness and liveness probes

func NewHealthCheck

func NewHealthCheck(db *pgxpool.Pool) *HealthCheck

NewHealthCheck creates new HealthCheck

func (*HealthCheck) Liveness

func (hc *HealthCheck) Liveness(w http.ResponseWriter, _ *http.Request)

Liveness determines whether service is up

func (*HealthCheck) Readiness

func (hc *HealthCheck) Readiness(w http.ResponseWriter, r *http.Request)

Readiness determines whether service is ready

Jump to

Keyboard shortcuts

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