Project setup
This is an initial project setup with endpoints that are going to be exposed and an initial implementation of query params and a type-safe implementation of their constraints. Included is a basic CI/CD pipeline that checks formatting, editorconfig and runs tests.
QueryParams
describes the default query params that can be found on https://metrics.torproject.org/onionoo.html#parameters.
QueryFilters
is the type-safe version of QueryParams
and it's only returned (Ok(_)
) in case every QueryParams
param does satisfy all the params constraints.