Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.2.0
type Config struct {
DisableSSLVerification bool
}
Mail queue configuration.
type Message ¶ added in v0.2.0
type Message struct { Host string From string To []string // contains filtered or unexported fields }
Message metadata.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Mail queue managing the sending of messages to hosts.
func NewQueue ¶
Create a new message queue. Any undelivered messages on disk will be added to the appropriate queue.
type Storage ¶ added in v0.2.0
type Storage struct {
// contains filtered or unexported fields
}
Manager for message metadata and body on disk. All methods are safe to call from multiple goroutines.
func NewStorage ¶ added in v0.2.0
Create a Storage instance for the specified directory.
func (*Storage) DeleteMessage ¶ added in v0.2.0
Delete the specified message. The message body is also deleted if no more messages exist.
func (*Storage) GetMessageBody ¶ added in v0.2.0
func (s *Storage) GetMessageBody(m *Message) (io.ReadCloser, error)
Retreive a reader for the message body.
func (*Storage) LoadMessages ¶ added in v0.2.0
Load messages from the storage directory. Any messages that could not be loaded are ignored.
Click to show internal directories.
Click to hide internal directories.