{"id":25120432,"url":"https://github.com/mathcale/goexpert-stresstest-cli-challenge","last_synced_at":"2026-05-01T14:33:33.303Z","repository":{"id":223414607,"uuid":"758289468","full_name":"mathcale/goexpert-stresstest-cli-challenge","owner":"mathcale","description":"Simple API stress testing CLI application for the Go Expert specialization course  ","archived":false,"fork":false,"pushed_at":"2025-03-22T21:10:33.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T22:01:04.703Z","etag":null,"topics":["golang","proof-of-work","stress-testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathcale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-16T01:53:20.000Z","updated_at":"2025-03-22T21:10:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5c6580e-7497-4087-93a1-fba362341bc0","html_url":"https://github.com/mathcale/goexpert-stresstest-cli-challenge","commit_stats":null,"previous_names":["mathcale/goexpert-stresstest-cli-challenge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathcale%2Fgoexpert-stresstest-cli-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathcale%2Fgoexpert-stresstest-cli-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathcale%2Fgoexpert-stresstest-cli-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathcale%2Fgoexpert-stresstest-cli-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathcale","download_url":"https://codeload.github.com/mathcale/goexpert-stresstest-cli-challenge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246834216,"owners_count":20841499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","proof-of-work","stress-testing"],"created_at":"2025-02-08T05:29:25.461Z","updated_at":"2026-05-01T14:33:28.253Z","avatar_url":"https://github.com/mathcale.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Expert Challenge - Stress Test CLI\n\nImplementação de um CLI em Go para realizar testes de stress em um endereço web.\n\n## Arquitetura\n\nAs requisições são realizadas de forma concorrente de acordo com a quantidade informada e são distribuídas em um pool de workers. Cada worker é responsável por realizar uma requisição HTTP e armazenar o resultado em um canal de comunicação. O resultado é então processado e exibido ao final da execução.\n\n## Como executar\n\n### Via Docker\n\nO projeto está disponível no Docker Hub, e para executar o container basta utilizar o comando abaixo, substituindo os valores de `--url`, `--requests` e `--concurrency` pelos valores desejados.\n\n```sh\ndocker run mathcale/goexpert-stresstest-cli-challenge:latest \\\n    --url https://google.com.br \\\n    --requests 100 \\\n    --concurrency 10\n```\n\n### Localmente\n\nPara executar o projeto localmente, é necessário ter o Go instalado na máquina. Após a instalação, basta executar o comando abaixo, substituindo os valores de `--url`, `--requests` e `--concurrency` pelos valores desejados.\n\n```sh\ngo run cmd/cli/main.go \\\n    --url https://google.com.br \\\n    --requests 100 \\\n    --concurrency 10\n```\n\n## Testes\n\nPara executar os testes de unidade, basta executar o comando abaixo.\n\n```sh\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathcale%2Fgoexpert-stresstest-cli-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathcale%2Fgoexpert-stresstest-cli-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathcale%2Fgoexpert-stresstest-cli-challenge/lists"}