feat: Use databaseBackend config repace databaseEtcd

databaseBackend config contains type and url sub config, It can facilitate the expansion of other types of databases in the future.
This commit is contained in:
hudeng authored and André Roth committed 2024-07-31 22:16:00 +02:00
1 parent f29449db14
commit 59bf4501e8
8 files changed
+47 -13

No files matched your search

+8
View File
@@ -41,6 +41,14 @@ type ConfigStructure struct { // nolint: maligned
LogFormat string `json:"logFormat"`
ServeInAPIMode bool `json:"serveInAPIMode"`
DatabaseEtcd string `json:"databaseEtcd"`
DatabaseBackend DBConfig `json:"databaseBackend"`
}
// DBConfig
type DBConfig struct {
Type string `json:"type"`
URL string `json:"url"`
DbPath string `json:"dbPath"`
}
type LocalPoolStorage struct {