Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregator ¶
Aggregator handles the aggregator endpoint for the API.
It parses the payload from the request body and verifies the signature. It checks if the timestamp is within the allowed range. It verifies if the task is finished and if the operator has already sent the task. If all checks pass, it saves the task to the queue. It returns an HTTP response with the status of the operation.
Parameters: - c: The gin.Context object representing the HTTP request and response.
Returns: - None.
func SetupRoutes ¶
SetupRoutes sets up routes for the aggregator API.
router is the Gin Engine instance used to set up the routes. No return values.
Types ¶
Click to show internal directories.
Click to hide internal directories.