aboutsummaryrefslogtreecommitdiff
path: root/worker/types/messages.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-01 19:34:08 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-01 19:34:08 -0500
commitcc03f6f4c802ee0742520145e9cacbd88f78ed9a (patch)
tree4baed447fec0eb5a5c82fd38a52ec205e638e8da /worker/types/messages.go
parent1767e4fab515cefba08345e6eb2c84f46daf4be1 (diff)
Implement (most of) mailbox listing
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r--worker/types/messages.go14
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