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
Click to show internal directories.
Click to hide internal directories.