health

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package health provides handler for health checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(r chi.Router, p ...Pinger)

SetupRouter setups all pingers to /health.

Types

type Pinger

type Pinger interface {
	Ping(ctx context.Context) error
}

Pinger pings external service.

Jump to

Keyboard shortcuts

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