diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-01 19:34:08 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-02-01 19:34:08 -0500 |
commit | cc03f6f4c802ee0742520145e9cacbd88f78ed9a (patch) | |
tree | 4baed447fec0eb5a5c82fd38a52ec205e638e8da /worker/types | |
parent | 1767e4fab515cefba08345e6eb2c84f46daf4be1 (diff) | |
download | aerc-cc03f6f4c802ee0742520145e9cacbd88f78ed9a.tar.gz |
Implement (most of) mailbox listing
Diffstat (limited to 'worker/types')
-rw-r--r-- | worker/types/messages.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go index 5259342..00937a9 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -26,10 +26,15 @@ func (m Message) InResponseTo() WorkerMessage { // Meta-messages +// TODO: Figure out a nice way of merging Ack and Done type Ack struct { Message } +type Done struct { + Message +} + type Error struct { Message Error error @@ -58,8 +63,17 @@ type Disconnect struct { Message } +type ListDirectories struct { + Message +} + // Messages +type Directory struct { + Message + Name *string +} + // Respond with an Ack to approve or Disconnect to reject type ApproveCertificate struct { Message |