railskit

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: MIT Imports: 2 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 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