Tiny Golang lib for IP filtering.
This is helpful to restrict access to some endpoints on public service (e.g debug endpoints)
Because some endpoints are problematic to hide using auth, like debug or metrics endpoints.
Filters are in a form of Bool conditions that takes IP in a form of net.IP
type Condition func(net.IP) bool
You can chain multiple conditions with some logic using ipfilter.OR(...)
ipfilter.AND(...)
This package also contain useful HTTP middleware integration.