denismitr / urlvisitor

URL visitor as a test exercise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Visitor test exercise

Usage

There are two ways to provide URLs to the app

  • through STDIN
  • via cli arguments

Via Makefile

make run-urls URLS="example.com ya.ru httpbin.com"

this is equal to ./bin/app example.com ya.ru httpbin.com or

make run-file

this is equal to cat ./urls.txt | ./bin/app

Concurrency can be controlled via ENV var MAX_CONCURRENCY HTTP Timeout can be controlled via ENV var HTTP_TIMEOUT_SECONDS

About

URL visitor as a test exercise


Languages

Language:Go 95.6%Language:Makefile 4.4%