Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Env Environment `yaml:"-"` // TODO: static and storage path are currently the same thing. StaticPath string `yaml:"static_path"` DiskStoragePath string `yaml:"disk_storage_path"` WebPort int64 `yaml:"web_port"` Postgres struct { Database string `yaml:"database"` Host string `yaml:"host"` Port string `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` } `yaml:"postgres"` }
func New ¶
func New(env Environment) (*Config, error)
func (*Config) MigrationObj ¶
func (*Config) PGSQLConnString ¶
type Environment ¶
type Environment string
const ( DevEnv Environment = "development" ProdEnv Environment = "production" )
Click to show internal directories.
Click to hide internal directories.