health checker

The course project: a Go command-line tool that checks a list of targets concurrently and reports each one as healthy or not, as JSON.

In more detail

It reads typed configuration, runs one goroutine per target with a deadline, keeps each error beside its target, encodes the results as JSON on standard output and sets an exit code a pipeline or orchestrator can act on. It ships as a static binary in a minimal image.

Example

./healthcheck -timeout 2s

Related terms

Taught in

References