healthz

package
v0.0.0-...-4c99fb1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(hc *Config) (http.Handler, error)

Handler provides a new healthz handler

Types

type Config

type Config struct {
	Hostname string
}

Config provides data for the healthz handler

func NewConfig

func NewConfig(appConfig *certMgr.AppConfig) (*Config, error)

NewConfig initializes a healthz.Config struct

type Error

type Error struct {
	Description string            `json:"description"`
	Error       string            `json:"error"`
	Metadata    map[string]string `json:"metadata"`
	Type        string            `json:"type"`
}

type Response

type Response struct {
	Hostname string            `json:"hostname"`
	Metadata map[string]string `json:"metadata"`
	Errors   []Error           `json:"errors"`
}

Jump to

Keyboard shortcuts

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