Documentation
¶
Index ¶
- type AppendMessage
- type Backend
- type Configure
- type Connect
- type CopyMessages
- type DeleteMessages
- type Directory
- type DirectoryContents
- type DirectoryInfo
- type Disconnect
- type Done
- type Error
- type FetchDirectoryContents
- type FetchFullMessages
- type FetchMessageBodyPart
- type FetchMessageHeaders
- type FullMessage
- type ListDirectories
- type Message
- type MessageBodyPart
- type MessageInfo
- type MessagesDeleted
- type OpenDirectory
- type Unsupported
- type Worker
- type WorkerMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendMessage ¶
type Configure ¶
type Configure struct {
Message
Config *config.AccountConfig
}
type CopyMessages ¶
type DeleteMessages ¶
type DeleteMessages struct {
Message
Uids imap.SeqSet
}
type DirectoryContents ¶
type DirectoryInfo ¶
type Disconnect ¶
type Disconnect struct {
Message
}
type FetchDirectoryContents ¶
type FetchDirectoryContents struct {
Message
}
type FetchFullMessages ¶
type FetchFullMessages struct {
Message
Uids imap.SeqSet
}
type FetchMessageBodyPart ¶
type FetchMessageHeaders ¶
type FetchMessageHeaders struct {
Message
Uids imap.SeqSet
}
type ListDirectories ¶
type ListDirectories struct {
Message
}
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func RespondTo ¶
func RespondTo(msg WorkerMessage) Message
func (Message) InResponseTo ¶
func (m Message) InResponseTo() WorkerMessage
type MessageInfo ¶
type MessagesDeleted ¶
type OpenDirectory ¶
type Unsupported ¶
type Unsupported struct {
Message
}
type Worker ¶
type Worker struct {
Backend Backend
Actions chan WorkerMessage
Messages chan WorkerMessage
Logger *log.Logger
// contains filtered or unexported fields
}
func (*Worker) PostAction ¶
func (worker *Worker) PostAction(msg WorkerMessage, cb func(msg WorkerMessage))
func (*Worker) PostMessage ¶
func (worker *Worker) PostMessage(msg WorkerMessage, cb func(msg WorkerMessage))
func (*Worker) ProcessAction ¶
func (worker *Worker) ProcessAction(msg WorkerMessage) WorkerMessage
func (*Worker) ProcessMessage ¶
func (worker *Worker) ProcessMessage(msg WorkerMessage) WorkerMessage
type WorkerMessage ¶
type WorkerMessage interface {
InResponseTo() WorkerMessage
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.