health

package
v0.0.0-...-d1ad60c Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

README

health

This module enables a simple health check.

By default it will listen on port 8080.

Restarting CoreDNS will stop the health checking. This is a bug. Also this upstream Caddy bug.

Syntax

health

Optionally takes an address; the default is :8080. The health path is fixed to /health. It will just return "OK" when CoreDNS is healthy.

This middleware only needs to be enabled once.

Examples

health localhost:8091

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	Addr string
	// contains filtered or unexported fields
}

func (*Health) Shutdown

func (h *Health) Shutdown() error

func (*Health) Startup

func (h *Health) Startup() error

Jump to

Keyboard shortcuts

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