serverkit

package
v0.8.29 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 1 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 {
	// contains filtered or unexported fields
}

HealthCheck to handle health-check

func NewHealthCheck

func NewHealthCheck() *HealthCheck

NewHealthCheck return new instance of HealthCheck

func (*HealthCheck) Process added in v0.8.26

func (h *HealthCheck) Process() (status int, message map[string]string)

Process the ping function

func (*HealthCheck) Put added in v0.8.26

func (h *HealthCheck) Put(name string, fn PingFn)

Put name and ping function

type PingFn added in v0.8.26

type PingFn func() error

PingFn is ping function

Jump to

Keyboard shortcuts

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