You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
411 B
Go
18 lines
411 B
Go
6 months ago
|
package config
|
||
|
|
||
|
import "github.com/kelseyhightower/envconfig"
|
||
|
|
||
|
type Database struct {
|
||
|
DatabaseDriver string `split_words:"true"`
|
||
|
DatabasePath string `split_words:"true"`
|
||
|
MigrationsPath string `default:"head" split_words:"true"`
|
||
|
LibsqlConnectorType string `default:"local" split_words:"true"`
|
||
|
}
|
||
|
|
||
|
func DataStore() Database {
|
||
|
var db Database
|
||
|
envconfig.MustProcess("flux", &db)
|
||
|
|
||
|
return db
|
||
|
}
|