healthcheck

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthcheck

type Healthcheck struct {
	Status string            `json:"status"`
	Errors HealthcheckErrors `json:"errors"`
}

type HealthcheckErrors

type HealthcheckErrors struct {
	Database string `json:"database"`
}

type IHandler added in v1.3.1

type IHandler interface {
	Check() http.Handler
}

func NewHandler added in v1.3.3

func NewHandler(repo repository) IHandler

type Service added in v1.3.1

type Service struct {
	Handler IHandler
}

func (*Service) Get added in v1.3.1

func (c *Service) Get() echo.HandlerFunc

Get godoc @Summary Get Health @Description run healthcheck @Tags HealthCheck @Accept json @Produce json @Success 200 {object} Healthcheck @Failure 503 {object} Healthcheck @Router /api/healthz [get]

Jump to

Keyboard shortcuts

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