package
0.0.0-20240612113728-b7730f35d19b
Repository: https://github.com/coding-standard/golang-project-layout.git
Documentation: pkg.go.dev

# Functions

DatabasePingCheck returns a Check that validates connectivity to a database/sql.DB using Ping().
DNSResolveCheck returns a Check that makes sure the provided host can resolve to at least one IP address within the specified timeout.
GCMaxPauseCheck returns a Check that fails if any recent Go garbage collection pause exceeds the provided threshold.
GoroutineCountCheck returns a Check that fails if too many goroutines are running (which could indicate a resource leak).
HTTPGetCheck returns a Check that performs an HTTP GET request against the specified URL.
NewHandler creates a new basic Handler.
TCPDialCheck returns a Check that checks TCP connectivity to the provided endpoint.
Timeout adds a timeout to a Check.

# Interfaces

Handler is an http.Handler with additional methods that register health and readiness checks.

# Type aliases

Check is a health/readiness check.