Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Timezone string `yaml:"timezone"` SendInterval uint16 `yaml:"send_interval"` FetchInterval uint16 `yaml:"fetch_interval"` Database *DatabaseConfig `yaml:"database"` Mailbox *MailboxConfig `yaml:"mailbox"` IMAP *ServerConfig `yaml:"imap"` SMTP *ServerConfig `yaml:"smtp"` }
type DatabaseConfig ¶
type DatabaseConfig struct {
URL string `yaml:"url"`
}
func GetDatabaseConfig ¶
func GetDatabaseConfig(prefix string) *DatabaseConfig
type MailboxConfig ¶
func GetMailboxConfig ¶
func GetMailboxConfig(prefix string) *MailboxConfig
type ServerConfig ¶
type ServerConfig struct { Address string `yaml:"address"` Password string `yaml:"password"` Authenticated bool `yaml:"authenticated"` Host string `yaml:"host"` Port uint16 `yaml:"port"` Tls *TlsConfig `yaml:"tls"` }
func GetServerConfig ¶
func GetServerConfig(prefix string) *ServerConfig
func (*ServerConfig) TlsConfig ¶
func (sc *ServerConfig) TlsConfig() *tls.Config
Click to show internal directories.
Click to hide internal directories.