Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server ServerConfig `json:"server"` Database PostgresConfig `json:"database"` Mailgun MailgunConfig `json:"mailgun"` Dropbox DropboxConfig `json:"dropbox"` }
func DefaultConfig ¶
func DefaultConfig() Config
func LoadConfig ¶
type DropboxConfig ¶
type MailgunConfig ¶
type PostgresConfig ¶
type PostgresConfig struct { Host string `json:"host"` Port int `json:"port"` User string `json:"user"` Password string `json:"password"` Name string `json:"name"` }
func DefaultPostgresConfig ¶
func DefaultPostgresConfig() PostgresConfig
func (PostgresConfig) ConnectionInfo ¶
func (c PostgresConfig) ConnectionInfo() string
func (PostgresConfig) Dialect ¶
func (c PostgresConfig) Dialect() string
type ServerConfig ¶
type ServerConfig struct { Port int `json:"port"` Env string `json:"env"` Pepper string `json:"pepper"` HMACKey string `json:"hmac_key"` }
func DefaultServerConfig ¶
func DefaultServerConfig() ServerConfig
func (ServerConfig) IsProduction ¶
func (c ServerConfig) IsProduction() bool
Click to show internal directories.
Click to hide internal directories.