Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { ServiceName string Healthy bool Version string BuildInfo string Router *mux.Router }
Base holds a standard set of values for all services & APIs
func (*Base) HealthCheck ¶
func (api *Base) HealthCheck(resp http.ResponseWriter, req *http.Request)
HealthCheck - Simple health check endpoint, returns 204 when healthy
func (*Base) Send ¶
func (api *Base) Send(data interface{}, resp http.ResponseWriter)
Send is a trivial helper for returning JSON over the API
Click to show internal directories.
Click to hide internal directories.