Commit Graph

9 Commits

Author SHA1 Message Date
Vincent Bernat
ea3d5a9f28 common/remotedatasource: accept empty transform query 2025-10-29 22:04:37 +01:00
Vincent Bernat
8c85d54b3b common/remotedatasource: ensure we have at least one goroutine
Otherwise, Stop() will block.
2025-07-29 09:24:32 +02:00
Vincent Bernat
0aef1503a8 common/remotedatasource: disable the regular ticker on failure 2025-07-29 08:37:50 +02:00
Vincent Bernat
19d07d350c common/remotedatasource: add a Stop() method
This is cleaner this way. We can't use it for the static provider as we
cannot stop a provider.
2025-07-29 08:36:16 +02:00
Vincent Bernat
1a160c83b5 common/remotedatasource: move errors higher in the file
Otherwise, I am always confused on where is the New() function.
2025-07-29 08:35:47 +02:00
Vincent Bernat
aeb102c748 outlet/metadata: do not start fetcher for static until first query
We don't want initialization to spawn goroutines. All the more that we
don't stop them.
2025-07-29 08:29:57 +02:00
Vincent Bernat
18beb310ee chore: replace interface{} with any 2025-07-29 07:42:49 +02:00
Vincent Bernat
fa7e4745b8 common/remotedatasource: be stricter on results from remote sources
Also:
 - don't return partial results (not used)
 - fix tests
 - add more tests
2025-07-29 07:25:42 +02:00
Vincent Bernat
cce61cb0d6 common/remotedatasource: rename from remotedatasourcefetcher
Also rename RemoteDataSource to Source.
2025-07-28 18:41:50 +02:00