Documentation
¶
Overview ¶
Package configs contains the configuration for the application
Index ¶
Constants ¶
View Source
const ( DriverPostgres = "pgx" DriverMySQL = "mysql" DriverSQLite = "sqlite" EnvDevelopment string = "development" EnvProduction string = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DBString string `env:"DBSTRING" env-required:"true"`
Server ServerConfig
Driver string
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.