package
0.0.0-20201207183138-34c5bf1cd2ff
Repository: https://github.com/jakewright/home-automation.git
Documentation: pkg.go.dev

# Functions

New returns a new router initialised with default middleware.
PingHandler returns a simple pong response.

# Structs

CheckResult represents the result of a single health check.
HealthHandler returns a JSON response describing the application's health.
HealthResponse represents the JSON response that is returned by HealthHandler.
PingResponse is returned by PingHandler.
Router handles HTTP requests to the service.

# Interfaces

HealthProvider returns a map representing the application's health.
Service represents the entire application and is used by the router to set up various standard endpoints that all services are given, such as /ping and /healthz.