diff options
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 |