Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Healthy bool `json:"healthy"` // Whether the server is healthy Version string `json:"version"` // Version of the API Name string `json:"name"` // Name of this API or web service }
This is intended to be wrapped & extended by the application API struct
func (*Base) AddLogging ¶
Add logging middleware to the router in Apache Common Log Format.
func (*Base) AddMetrics ¶
AddMetrics adds Prometheus metrics to the router
Click to show internal directories.
Click to hide internal directories.