Develop a task management mechanism accessible via HTTP. The system should provide the following capabilities:
- Users can create new tasks via an HTTP endpoint.
- Newly created tasks should be added to a queue for asynchronous processing.
- Users can list all tasks and check the status of individual tasks using their task ID.
- The system must include both a task queue and a task management component to handle task execution and status tracking.
make run
POST - http://localhost:2025/task - making request for mocking data creation, no need post params
GET - http://localhost:2025/task/create - get the all user's tasks list with statuses
GET - http://localhost:2025/tasks/3 - get specific task by taskID
PUT - http://localhost:2025/tasks/3 - Update the task (changes the status to Processing)
P.S.: In addition, usage of maps probably better solution than slices for tasks storage, currently implemented slices