handlers

package
v0.0.0-...-652460b Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(e *echo.Echo)

Register routes with echo

Types

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

Jump to

Keyboard shortcuts

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