alexliesenfeld / health

A simple and flexible health check library for Go.
MIT License
774 stars 38 forks source link

Add DNS resolve check #40

Closed alexliesenfeld closed 1 year ago

alexliesenfeld commented 1 year ago

It would be useful to have a small library of commonly used health checks. In the scope of this issue, a DNS resolver check should be implemented (e.g. using LookupHost method if net.Resolver). Optimally, the implementation should support timeouts from the context.Context value that is being passed to every health check function.

A few constraints to keep things clean and simple:

Should you have questions or require help, please join our discord chat room.