summaryrefslogtreecommitdiff
path: root/worker/types/messages.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-01-19 13:18:09 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-19 17:34:42 +0100
commit1ace50a6b927fde7ef3205001a7acd91e04ac2d7 (patch)
treed635cea128d58542be369e8f269ebd2224f4ac09 /worker/types/messages.go
parent022bf1a11fa65c81dd5c7ded2a205a94bb449a7a (diff)
downloadaerc-1ace50a6b927fde7ef3205001a7acd91e04ac2d7.zip
imap: emits connection error on logout
implements a new connection error message. This allows the worker to emit a connection-related error message to the ui when the imap client closes the loggedOut channel. Signed-off-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r--worker/types/messages.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go
index fb701bd..a5eae8d 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -48,6 +48,11 @@ type Error struct {
Error error
}
+type ConnError struct {
+ Message
+ Error error
+}
+
type Unsupported struct {
Message
}