refactor(db, config, repos): migrate from functions to struct #9

Merged
xpamych merged 8 commits from Maks1mS/ALR:refactor/db into master 2025-01-18 15:27:11 +00:00

8 Commits

Author SHA1 Message Date
Maxim Slipenko
e1829c4824 refactor: migrate repos find to struct 2025-01-14 13:18:51 +03:00
Maxim Slipenko
12d83f2015 test: fix decoder and handlers tests 2025-01-14 13:04:10 +03:00
Maxim Slipenko
6bc6bfdcd9 refactor: migrate dlcache to struct 2025-01-14 12:59:00 +03:00
Maxim Slipenko
eeb25c239b refactor: move defaultConfig from config_legacy to config 2025-01-14 11:54:00 +03:00
Maxim Slipenko
91937a1fc5 refactor: migrate repo to struct 2025-01-14 11:49:42 +03:00
Maxim Slipenko
e827fb8049 refactor: use context logger 2025-01-14 10:41:38 +03:00
Maxim Slipenko
a13acc5ed0 refactor: migrate list command to struct API 2025-01-14 10:35:23 +03:00
Maxim Slipenko
52d3ab7791 refactor: migrate db and config packages to use struct-based API
Removed global variables in favor of instance variables. This makes the code more maintainable and making it easier to write unit tests without relying on global state.

Marked the old functions with global state as obsolete, redirecting them to use a new API based on struct in order to rewrite the code using these functions gradually.
2025-01-14 10:11:17 +03:00