healthz

package
v0.0.0-...-24b2f9b 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: 7 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
	Vault    VaultConfig
}

type DatabaseChecker

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

func NewDatabaseChecker

func NewDatabaseChecker(dsn string) (*DatabaseChecker, error)

func (*DatabaseChecker) Ping

func (dc *DatabaseChecker) Ping() error

type DatabaseConfig

type DatabaseConfig struct {
	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"`
}

type VaultChecker

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

func NewVaultChecker

func NewVaultChecker(address string) *VaultChecker

func (*VaultChecker) Ping

func (vc *VaultChecker) Ping() error

type VaultConfig

type VaultConfig struct {
	Address string
}

Jump to

Keyboard shortcuts

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