Documentation
¶
Overview ¶
Package provides a set of simple services that can be used the the http server.
Index ¶
Constants ¶
View Source
const (
HealthRoute string = "/health"
)
View Source
const (
MetricsRoute = "/metrics"
)
View Source
const (
PProfRoute = "/debug/pprof/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Health ¶
type Health struct {
Start time.Time
Info build.Information
}
Health reports on the health of the service as a whole.
type HealthResponse ¶
type HealthResponse struct {
// swagger:allOf
Data `json:"data"`
}
HealthResponse returns the status of the server, including the name, version, build details, and uptime.
swagger:response HealthResponse
type Metrics ¶
type Metrics struct{}
Metrics that reports the metrics of the service.
Click to show internal directories.
Click to hide internal directories.