mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-20 10:57:09 +00:00
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:
1 parent
f29449db14
commit
59bf4501e8
8 files changed
+47
-13
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user