serverkit

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(debug bool) *echo.Echo

Create echo server

func Shutdown

func Shutdown(server *echo.Echo) (err error)

Shutdown echo server

Types

type HealthCheck

type HealthCheck map[string]string

HealthCheck is key-value store that contain health check information

func NewHealthCheck

func NewHealthCheck() HealthCheck

NewHealthCheck return new instance of HealthCheck

func (HealthCheck) Add

func (c HealthCheck) Add(name string, err error) HealthCheck

Add name and error to register as heath check

func (HealthCheck) NotOK

func (c HealthCheck) NotOK() bool

NotOK return true is some error registered

func (HealthCheck) Send

func (c HealthCheck) Send(ctx echo.Context) error

Send healthcheck response

Jump to

Keyboard shortcuts

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