healthz

package
v0.0.0-...-8f8c351 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2016 License: Apache-2.0 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)

Types

type Config

type Config struct {
	Hostname string
	Database DatabaseConfig
}

type DatabaseChecker

type DatabaseChecker struct {
	// contains filtered or unexported fields
}

func NewDatabaseChecker

func NewDatabaseChecker(driverName, dataSourceName string) (*DatabaseChecker, error)

func (*DatabaseChecker) Ping

func (dc *DatabaseChecker) Ping() error

type DatabaseConfig

type DatabaseConfig struct {
	DriverName     string
	DataSourceName string
}

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