The task description is in the TASK.md file
go install -x .
then run it:
backend-assignment-bruno-nascimento
NAME | DESCRIPTION | DEFAULT |
---|---|---|
APP_TEAMS_LIST | List of the teams that must be found and retrieve from the API | Gremio |
CACHE_ENABLED | Flag the save the teams fetched from the API on the disk | true |
CACHE_PATH | Path where the cache files will be saved | $HOME/acme/tech-challenge/bruno-nascimento |
CACHE_TTL | Time the cache will be valid | 30s |
API_ENDPOINT | URL of the teams API endpoint | https://******/{team_id}.json |
API_PARALLEL_REQUESTS | Maximum number of simultaneous requests made | runtime.NumCPU() |
The mock was generated using mockery --all --keeptree
brunocn80@gmail.com - LinkedIn
Thank you. It was fun!