configuration

package
v0.0.0-...-0202b1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

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

type LocalConfiguration struct {
	MinSyncInterval time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL