liuhaijun e94826ce29 add server
Change-Id: I0760f17f6a01c0121b59fcbfafc666032dbc30af
2024-09-19 09:44:15 +00:00

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,
}