Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoints ¶
Endpoints is a marker for defining REST API routes
func NewEndpoints ¶
func NewEndpoints() *Endpoints
NewEndpoints provides handle to the REST URI defined in this API
func (*Endpoints) CloudWorkerRequests ¶
CloudWorkerRequests godoc @Summary Cloud Workers and the total number of messages processed by them @Description List of all the Cloud Workers and total number of messages processed by them @Tags worker @Produce json @Success 200 {object} data.CloudWorkerRequests "The total number of requests processed by each cloud" @Router /workers/cloud [get]
func (*Endpoints) Live ¶
Live godoc @Summary Checks the API liveness @Description Checks the API liveness, can be used with Kubernetes Probes @Tags health @Produce json @Success 200 {object} string @Router /health/live [get]
func (*Endpoints) Ready ¶
Ready godoc @Summary Checks the API readiness @Description Checks the API readiness, can be used with Kubernetes Probes @Tags health @Produce json @Success 200 {object} string @Router /health/ready [get]
func (*Endpoints) Responses ¶
Responses godoc @Summary Retrieves all responses processed by the backend @Description Retrieves all responses processed by the backend sorted by timestamp @Tags worker @Produce json @Success 200 {object} data.CloudWorkers "Processed response data" @Router /workers/all [get]
func (*Endpoints) SendRequest ¶
SendRequest godoc @Summary builds and send request message to backend @Description builds and send request message to backend for processing @Tags backend @Accept json @Param message body data.Request true "Message to process" @Success 202 {object} data.Response @Failure 400 {object} utils.HTTPError @Router /send-request [post]