ThinkChaos
ef29cdc45e
refactor(config): ensure `upstreams.timeout` is always valid
2023-12-05 20:52:46 -05:00
ThinkChaos
f371857150
style(tests): use `ContainElements` where possible
2023-12-01 15:53:11 -05:00
ThinkChaos
b386e22ebe
refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible
...
Move `startVerifyUpstream` to `upstreams.startVerify` so it's accessible
via `UpstreamGroup` and we don't need to pass `startVerify` to all
resolver constructors that call `NewUpstreamResolver`.
Also has the nice benefit of greatly reducing the usage of `GetConfig`.
2023-11-23 08:45:18 -05:00
Kwitsch
72352a968a
UpstreamsConfig -> Upstreams
2023-11-21 21:35:41 -05:00
DerRockWolf
94663eeaeb
feat: add upstream strategy `random` ( #1221 )
...
Also simplify code by getting rid of `resolversPerClient` and all surrounding logic.
2023-11-18 15:42:14 -05:00
ThinkChaos
639fba5323
refactor(config): allow more configuration for `upstreams`
...
Rename the `upstream` option to `upstreams.groups` so we can have
more `upstreams` options.
2023-08-01 15:01:40 -04:00