blocky/config
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
..
migration refactor(config): allow more configuration for `upstreams` 2023-08-01 15:01:40 -04:00
blocking.go style(config): add `config/migration` to `dot-import` allow-list 2023-11-23 08:45:18 -05:00
blocking_test.go BlockingConfig -> Blocking 2023-11-21 21:35:41 -05:00
bytes_source.go feat: support multiple hosts files 2023-07-07 09:16:20 -04:00
bytes_source_enum.go feat: support multiple hosts files 2023-07-07 09:16:20 -04:00
caching.go EDNS: Client Subnet (#1007) 2023-11-20 16:56:56 +01:00
caching_test.go EDNS: Client Subnet (#1007) 2023-11-20 16:56:56 +01:00
client_lookup.go ClientLookupConfig -> ClientLookup 2023-11-21 21:35:41 -05:00
client_lookup_test.go ClientLookupConfig -> ClientLookup 2023-11-21 21:35:41 -05:00
conditional_upstream.go ConditionalUpstreamConfig -> ConditionalUpstream 2023-11-21 21:35:41 -05:00
conditional_upstream_test.go ConditionalUpstreamConfig -> ConditionalUpstream 2023-11-21 21:35:41 -05:00
config.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
config_enum.go refactor(config): add `TLSVersion` type 2023-11-23 08:45:18 -05:00
config_suite_test.go fix(tests): properly silence log output (#1259) 2023-11-19 17:51:49 -05:00
config_test.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
custom_dns.go CustomDNSConfig -> CustomDNS 2023-11-21 21:35:41 -05:00
custom_dns_test.go CustomDNSConfig -> CustomDNS 2023-11-21 21:35:41 -05:00
duration.go EDNS: Client Subnet (#1007) 2023-11-20 16:56:56 +01:00
duration_test.go fix: duration checks to take into account values can be negative 2023-07-07 09:16:20 -04:00
ecs.go symbol name refactoring (#1263) 2023-11-21 06:33:38 +01:00
ecs_test.go symbol name refactoring (#1263) 2023-11-21 06:33:38 +01:00
filtering.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
filtering_test.go chore(build): Automation workflows (#972) 2023-04-03 16:33:16 +02:00
hosts_file.go style(config): add `config/migration` to `dot-import` allow-list 2023-11-23 08:45:18 -05:00
hosts_file_test.go feat: support multiple hosts files 2023-07-07 09:16:20 -04:00
metrics.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
metrics_test.go chore(build): Automation workflows (#972) 2023-04-03 16:33:16 +02:00
qtype_set.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
qtype_set_test.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
query_log.go feat(querylog): add flushInterval parameter 2023-09-14 15:06:10 +02:00
query_log_test.go chore(build): Automation workflows (#972) 2023-04-03 16:33:16 +02:00
redis.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
redis_test.go Refactoring Redis (#1271) 2023-11-27 12:08:31 -05:00
rewriter.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
rewriter_test.go chore(build): Automation workflows (#972) 2023-04-03 16:33:16 +02:00
sudn.go symbol name refactoring (#1263) 2023-11-21 06:33:38 +01:00
sudn_test.go symbol name refactoring (#1263) 2023-11-21 06:33:38 +01:00
upstream.go refactor: configuration rework (usage and printing) (#920) 2023-03-12 22:14:10 +01:00
upstreams.go refactor(config): move `dohUserAgent` to `upstreams.userAgent` 2023-11-23 08:45:18 -05:00
upstreams_test.go refactor: embed `Upstreams` in `UpstreamGroup` to make values accessible 2023-11-23 08:45:18 -05:00