Back to godoc.org

Package handlers

v0.0.0-...-652460b
Latest Go to latest

The latest major version is .

Published: Aug 7, 2020 | License: MIT | Module: github.com/admiralobvious/echo-boilerplate

Index

func Register

func Register(e *echo.Echo)

Register routes with echo

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"error"`
}

ErrorResponse holds an error message

type Handler

type Handler struct {
}

Handler represents the structure of our resource

func (*Handler) Healthz

func (h *Handler) Healthz(c echo.Context) error

Healthz returns 200 for load-balancer/Kubernetes health checks

func (*Handler) Root

func (h *Handler) Root(c echo.Context) error

Root returns the welcome message

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier