Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DBUsername string DBPassword string DBName string DBSchema string DBHostname string DBPort int DBConn *pgx.Conn PasswordSalt string HTTPS bool HTTPBindAddr string // e.g. ":8000" HTTPReadSigningSecret string HTTPWriteSigningSecret string Development bool // true=local false=prod }
Config is the main app config
func NewConfig ¶
func NewConfig(dbUsername, dbPassword, dbName, dbSchema, dbHostname string, dbPort int, httpBindAddr, passwordSalt, httpReadSigningSecret, httpWriteSigningSecret string, https, development bool) (*Config, error)
NewConfig is a Config constructor
func NewTestConfig ¶
Click to show internal directories.
Click to hide internal directories.