blocky/resolver
Kwitsch fda2dbe9df
Refactoring Redis (#1271)
* RedisConfig -> Redis

* moved redis config to seperate file

* bugfix in config test during parallel processing

* implement config.Configurable in Redis config

* use Context in GetRedisCache

* use Context in New

* caching resolver test fix

* use Context in PublishEnabled

* use Context in getResponse

* remove ctx field

* bugfix in api interface test

* propperly close channels

* set ruler for go files from 80 to 111

* line break because function length is to long

* only execute redis.New if it is enabled in config

* stabilized flaky tests

* Update config/redis.go

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update config/redis_test.go

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update config/redis_test.go

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update config/redis_test.go

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update config/redis.go

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* Update config/redis_test.go

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>

* fix ruler

* redis test refactoring

* vscode setting cleanup

* removed else if chain

* Update redis_test.go

* context race fix

* test fail on missing seintinel servers

* cleanup context usage

* cleanup2

* context fixes

* added context util

* disabled nil context rule for tests

* copy paste error ctxSend -> CtxSend

* use util.CtxSend

* fixed comment

* fixed flaky test

* failsafe and tests

---------

Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
2023-11-27 12:08:31 -05:00
..
blocking_resolver.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
blocking_resolver_test.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
bootstrap.go refactor(config): remove `GetConfig` and its last uses 2023-11-23 08:45:18 -05:00
bootstrap_test.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
caching_resolver.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
caching_resolver_test.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
client_names_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
client_names_resolver_test.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
conditional_upstream_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
conditional_upstream_resolver_test.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
custom_dns_resolver.go CustomDNSConfig -> CustomDNS 2023-11-21 21:35:41 -05:00
custom_dns_resolver_test.go CustomDNSConfig -> CustomDNS 2023-11-21 21:35:41 -05:00
ecs_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
ecs_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
ede_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
ede_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
filtering_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
filtering_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
fqdn_only_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
fqdn_only_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
hosts_file_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
hosts_file_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
metrics_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
metrics_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
mock_udp_upstream_server.go fix(tests): don't make following requests wait on the first 2023-11-23 08:45:18 -05:00
mocks_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
noop_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
noop_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
parallel_best_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
parallel_best_resolver_test.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
query_logging_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
query_logging_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
resolver_suite_test.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
resolver_test.go BlockingConfig -> Blocking 2023-11-21 21:35:41 -05:00
rewriter_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
rewriter_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
strict_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
strict_resolver_test.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
sudn_resolver.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
sudn_resolver_test.go refactor: make use of contexts in more places 2023-11-21 12:21:35 -05:00
upstream_resolver.go refactor(config): move `dohUserAgent` to `upstreams.userAgent` 2023-11-23 08:45:18 -05:00
upstream_resolver_test.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
upstream_tree_resolver.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00
upstream_tree_resolver_test.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00