Documentation
¶
Overview ¶
Package configs contains the configuration for the application
Index ¶
Constants ¶
Variables ¶
View Source
var Drivers = map[Driver]Driver{ "pgx": DriverPostgres, "mysql": DriverMySQL, "sqlite": DriverSQLite, }
Functions ¶
This section is empty.
Types ¶
type AutoUpdateConfig ¶ added in v0.1.3
type AutoUpdateConfig struct {
DisableAutoUpdate bool `env:"DISABLE_AUTO_UPDATE" env-default:"false"`
}
type Config ¶
type Config struct {
DBString string `env:"DBSTRING" env-required:"true"`
Server ServerConfig
Update AutoUpdateConfig
Driver Driver
MaxItemsPerPage int `env:"MAX_ITEMS_PER_PAGE" env-default:"10"`
Env string `env:"ENV" env-default:"production"`
LogFilePath string `env:"LOG_FILE_PATH" env-default:"~/.rowsql/rowsql.log"`
Logo string
}
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.