MCPcopy Index your code
hub / github.com/DoNewsCode/core / HealthCheckModule

Struct HealthCheckModule

srvhttp/healthcheck.go:12–12  ·  view source on GitHub ↗

HealthCheckModule defines a http provider for container.Container. It uses github.com/heptiolabs/healthcheck underneath. It doesn't do much out of box other than providing liveness check at ``/live`` and readiness check at ``/ready``. End user should add health checking functionality by themself, e.

Source from the content-addressed store, hash-verified

10// check at ``/live`` and readiness check at ``/ready``. End user should add health checking functionality by themself,
11// e.g. probe if database connection pool has exhausted at readiness check.
12type HealthCheckModule struct{}
13
14// ProvideHTTP implements container.HTTPProvider
15func (h HealthCheckModule) ProvideHTTP(router *mux.Router) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected