Documentation ¶
Index ¶
Constants ¶
View Source
const ( DBInmemory = "inmemory" DBSqlite = "sqlite" DBMysql = "mysql" )
Variables ¶
This section is empty.
Functions ¶
func InitViperConfig ¶
func InitViperConfig()
InitViperConfig https://github.com/spf13/viper Viper uses the following precedence order. Each item takes precedence over the item below it:
- explicit call to Set
- flag
- env
- config
- key/value store
- default
Types ¶
type Configuration ¶
type Configuration struct { AppPort *string `mapstructure:"app_port"` DemoMode *bool `mapstructure:"demo_mode"` UploadPathArea *string `mapstructure:"upload_path_area"` UploadPathCrop *string `mapstructure:"upload_path_crop"` TaniaPersistenceEngine *string `mapstructure:"tania_persistence_engine"` SqlitePath *string `mapstructure:"sqlite_path"` MysqlHost *string `mapstructure:"mysql_host"` MysqlPort *string `mapstructure:"mysql_port"` MysqlDbname *string `mapstructure:"mysql_dbname"` MysqlUsername *string `mapstructure:"mysql_username"` MysqlPassword *string `mapstructure:"mysql_password"` RedirectURI []*string `mapstructure:"redirect_uri"` ClientID *string `mapstructure:"client_id"` }
var Config Configuration
Click to show internal directories.
Click to hide internal directories.