Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusUp = "up" StatusDown = "down" )
Variables ¶
View Source
var Module = fx.Options( fx.Provide( NewHealthService, NewHealthCheckEndpoint, ), fx.Invoke(func(endpoint *HealthCheckEndpoint) { endpoint.RegisterEndpoints() }), )
Functions ¶
This section is empty.
Types ¶
type HealthCheckEndpoint ¶
type HealthCheckEndpoint struct {
// contains filtered or unexported fields
}
func NewHealthCheckEndpoint ¶
func NewHealthCheckEndpoint( service HealthService, server customEcho.EchoHttpServer, ) *HealthCheckEndpoint
func (*HealthCheckEndpoint) CheckHealth ¶
func (s *HealthCheckEndpoint) CheckHealth(c echo.Context) error
func (*HealthCheckEndpoint) RegisterEndpoints ¶
func (s *HealthCheckEndpoint) RegisterEndpoints()
type HealthParams ¶
type HealthService ¶
func NewHealthService ¶
func NewHealthService( healthParams HealthParams, ) HealthService
type UnhealthyHealthService ¶
type UnhealthyHealthService struct{}
func NewUnhealthyHealthService ¶
func NewUnhealthyHealthService() UnhealthyHealthService
func (UnhealthyHealthService) CheckHealth ¶
func (service UnhealthyHealthService) CheckHealth(context.Context) Check
Click to show internal directories.
Click to hide internal directories.