configuration

package
v0.0.0-...-4b6167c Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: AGPL-3.0 Imports: 6 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

	SMTPURL      string
	SMTPUsername string
	SMTPPassword string

	FromName    string
	FromAddress string

	ToName    string
	ToAddress string
}

func New

func New(src io.Reader) *Configuration

func (*Configuration) IMAP

func (c *Configuration) IMAP() *mstore.IMAPConfig

func (*Configuration) SMTP

func (c *Configuration) SMTP() *msend.SSLSMTPConfig

Jump to

Keyboard shortcuts

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