-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: add service package and start splitting HTTP handling #1595
base: main
Are you sure you want to change the base?
Conversation
Allow helpertest to use util since only the tests need helpertests, we can use util from there without creating a circular dependency.
Package service exposes types to abstract services from the networking. The idea is that we build a set of services and a set of network endpoints (Listener). The services are then assigned to endpoints based on the address(es) they were configured for. Actual service to endpoint binding is not handled by the abstractions in this package as it is protocol specific. The general pattern is to make a "server" that wraps a service, and can then be started on an endpoint using a `Serve` method, similar to `http.Server`. To support exposing multiple compatible services on a single endpoint (example: DoH + metrics on a single port), services can implement `Merger`.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1595 +/- ##
==========================================
- Coverage 93.88% 91.83% -2.06%
==========================================
Files 78 91 +13
Lines 6361 7003 +642
==========================================
+ Hits 5972 6431 +459
- Misses 300 487 +187
+ Partials 89 85 -4 ☔ View full report in Codecov by Sentry. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR was closed because it has been stalled for 10 days with no activity. |
Progress for #1206
Can't reopen 1427, so making a new PR.
EDIT: at least this way we get a codecov patch diff percentage back 😄