Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthService ¶
type HealthService struct {
// contains filtered or unexported fields
}
HealthService represents a simple health check service it defines the routes that we expose for readiness and liveness probes
func (*HealthService) Get ¶
func (s *HealthService) Get(w http.ResponseWriter, r *http.Request)
Health returns the health status of the payments service. This relies on the status of the database, if reachable, then a 200 status code is returned, otherwise, we return a 503 and we rely on the orchestration to supervise us, and shut us down if needed
func (*HealthService) Routes ¶
func (s *HealthService) Routes() *chi.Mux
Routes returns a router with all routes supported by this service
Click to show internal directories.
Click to hide internal directories.