healthcheck

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(d RouteDependecy)

Types

type Handler

type Handler struct {
	Resp       handler.ResponseInterface
	Log        log.LoggerInterface
	AppContext context.AppContext
}

func NewHandler

func NewHandler(d HandlerDependency) Handler

func (Handler) CheckHealth

func (h Handler) CheckHealth() handler.EndpointHandler

func (Handler) GetIpLog added in v1.2.0

func (h Handler) GetIpLog() handler.EndpointHandler

func (Handler) SendTestMail added in v1.2.0

func (h Handler) SendTestMail() handler.EndpointHandler

type HandlerDependency

type HandlerDependency struct {
	Logger     log.LoggerInterface
	AppContext context.AppContext
}

type HealthCheckRoute

type HealthCheckRoute struct {
	Context    router.Context
	Logger     log.LoggerInterface
	AppContext context.AppContext
}

func (HealthCheckRoute) GetHealtCheckStatus

func (r HealthCheckRoute) GetHealtCheckStatus(h Handler) router.EndpointInfo

func (HealthCheckRoute) InitEndpoints

func (r HealthCheckRoute) InitEndpoints()

func (HealthCheckRoute) PostTestMail added in v1.2.0

func (r HealthCheckRoute) PostTestMail(h Handler) router.EndpointInfo

func (HealthCheckRoute) ServeStatic added in v1.3.0

func (r HealthCheckRoute) ServeStatic(h Handler) router.EndpointInfo

type RouteDependecy

type RouteDependecy struct {
	Context    router.Context
	Logger     log.LoggerInterface
	AppContext context.AppContext
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL