2019-04-25 04:52:08 +07:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// LocalStorageConfiguration represents the configuration when using local storage.
|
|
|
|
type LocalStorageConfiguration struct {
|
|
|
|
Path string `yaml:"path"`
|
|
|
|
}
|
|
|
|
|
2019-11-16 17:38:21 +07:00
|
|
|
// SQLStorageConfiguration represents the configuration of the SQL database
|
|
|
|
type SQLStorageConfiguration struct {
|
|
|
|
Host string `yaml:"host"`
|
|
|
|
Port int `yaml:"port"`
|
|
|
|
Database string `yaml:"database"`
|
|
|
|
Username string `yaml:"username"`
|
|
|
|
Password string `yaml:"password"`
|
|
|
|
}
|
|
|
|
|
2019-04-25 04:52:08 +07:00
|
|
|
// StorageConfiguration represents the configuration of the storage backend.
|
|
|
|
type StorageConfiguration struct {
|
|
|
|
Local *LocalStorageConfiguration `yaml:"local"`
|
2019-11-16 17:38:21 +07:00
|
|
|
SQL *SQLStorageConfiguration `yaml:"sql"`
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|