14 lines
435 B
Go
14 lines
435 B
Go
package config
|
|
|
|
type DatabaseConfig struct {
|
|
Type string `ini:"type" yaml:"type" mapstructure:"type"`
|
|
SqliteConfig SqliteConfig `ini:"sqlite" yaml:"sqlite" mapstructure:"sqlite"`
|
|
PostgreSqlConfig PostgreSqlConfigMap `ini:"postgres" yaml:"postgres" mapstructure:"postgres"`
|
|
}
|
|
|
|
var Database = DatabaseConfig{
|
|
Type: "sqlite",
|
|
SqliteConfig: Sqlite,
|
|
PostgreSqlConfig: PostgreSql,
|
|
}
|