Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPGenericSuccess = 200 HTTPCodeBadRequest = 400 HTTPForbiddenResource = 403 HTTPCodeInternalServerError = 500 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Cfg *config.MainConfig Metric *Metric }
API is the api struct
func (*API) Accounts ¶
func (a *API) Accounts(w http.ResponseWriter, r *http.Request, ps httprouter.Params) *response.JSONResponse
Accounts handle accounts endpoint
func (*API) Customers ¶
func (a *API) Customers(w http.ResponseWriter, r *http.Request, ps httprouter.Params) *response.JSONResponse
Customers handle customers endpoint
type Metric ¶
type Metric struct {
DDogSvcMetric metric.MetricInterface
}
Click to show internal directories.
Click to hide internal directories.