Documentation ¶
Index ¶
- func HealthzRoute(r *mux.Router, handler *healthHandler)
- func MetricsRoute(r *mux.Router, handler *metricsHandler)
- func NewHealthHandler(healthCheckTarget HealthCheckable) *healthHandler
- func NewMetricsHandler(ms MetricsServiceInterface) *metricsHandler
- func NewRouter() *mux.Router
- type HealthCheckable
- type MetricsServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthzRoute ¶
func MetricsRoute ¶
func NewHealthHandler ¶
func NewHealthHandler(healthCheckTarget HealthCheckable) *healthHandler
NewHealthHandler creates a handler for the Health endpoints healthCheckTarget must contain an implementation that will be utilized to signal that the service is ready to accept requests.
func NewMetricsHandler ¶
func NewMetricsHandler(ms MetricsServiceInterface) *metricsHandler
Types ¶
type HealthCheckable ¶
type HealthCheckable interface {
IsHealthy() error
}
Click to show internal directories.
Click to hide internal directories.