Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { User string `mapstructure:"user" yaml:"user" json:"user"` Password string `mapstructure:"password" yaml:"password" json:"password"` Host string `mapstructure:"host" yaml:"host" json:"host"` Name string `mapstructure:"name" yaml:"name" json:"name"` Port int `mapstructure:"port" yaml:"port" json:"port"` SSLMode bool `mapstructure:"ssl_mode" yaml:"ssl_mode" json:"ssl_mode"` }
type Keys ¶
type Server ¶
type Server struct { Mode string Hostname string Url string Port string ProblemsDir string TemplatesDir string CookieSecret string GoogleAuth struct { Enabled bool `json:"enabled" mapstructure:"enabled"` ClientKey string `json:"client_key" mapstructure:"client_key"` Secret string `json:"secret" mapstructure:"secret"` Callback string `json:"callback" mapstructure:"callback"` } `json:"googleAuth" mapstructure:"googleAuth"` Sendgrid struct { Enabled bool `json:"enabled" mapstructure:"enabled"` ApiKey string `json:"api_key" mapstructure:"api_key"` SenderName string `json:"sender_name" mapstructure:"sender_name"` SenderAddress string `json:"sender_address" mapstructure:"sender_address"` } `json:"sendgrid" mapstructure:"sendgrid"` SMTP struct { Enabled bool `json:"enabled" mapstructure:"enabled"` MailAccount string `json:"mail_account" mapstructure:"mail_account"` MailServerHost string `json:"mail_server" mapstructure:"mail_server"` MailServerPort string `json:"mail_port" mapstructure:"mail_port"` MailAccountPassword string `json:"mail_password" mapstructure:"mail_password"` } `json:"smtp" mapstructure:"smtp"` Database `json:"database" mapstructure:"database"` Keys Keys }
Click to show internal directories.
Click to hide internal directories.