Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnableToRead = errors.New("unable to read configuration")
)
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { IMAPURL string IMAPUsername string IMAPPassword string IMAPFolderPrefix string SMTPURL string SMTPUsername string SMTPPassword string FromName string FromAddress string ToName string ToAddress string LocalDBPath string DaysAhead int }
func NewFromEnvironment ¶
func NewFromEnvironment() *Configuration
func NewFromFile ¶
func NewFromFile(src io.Reader) *Configuration
func (*Configuration) IMAP ¶
func (c *Configuration) IMAP() *mstore.IMAPConfig
func (*Configuration) SMTP ¶
func (c *Configuration) SMTP() *msend.SSLSMTPConfig
func (*Configuration) Sqlite ¶
func (c *Configuration) Sqlite() *storage.SqliteConfig
type LocalConfiguration ¶
Click to show internal directories.
Click to hide internal directories.