Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultFileName = "conf.toml"
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromEnv ¶
func LoadDatabaseFromEnv ¶
func LoadMailerFromEnv ¶
Types ¶
type Config ¶
type Config struct {
IsDebug bool `toml:"is_debug"`
ProjectName string `toml:"project_name"`
Runtime Runtime `toml:"server"`
Database Database `toml:"database"`
Mailer Mailer `toml:"mailer"`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Mailer ¶
type Mailer struct {
Driver string `toml:"driver"` // "smtp", "webhook", or "stub"
From string `toml:"from"`
FromName string `toml:"from_name"`
Smtp MailerSmtp `toml:"smtp"`
Webhook MailerWebhook `toml:"webhook"`
}
type MailerSmtp ¶
type MailerWebhook ¶
Click to show internal directories.
Click to hide internal directories.