summaryrefslogtreecommitdiff
path: root/worker/types/messages.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-01-19 13:18:10 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-19 17:40:52 +0100
commitbeae17a6da37402d1c69dc76b476f55cbae982b8 (patch)
tree94309a87346dc320627a032bfce73f58bcc77412 /worker/types/messages.go
parent1ace50a6b927fde7ef3205001a7acd91e04ac2d7 (diff)
downloadaerc-beae17a6da37402d1c69dc76b476f55cbae982b8.zip
imap: auto-reconnects on connection error
if the worker emits a connection error, the ui will automatically send back a reconnect command. The worker then establishes a new connection. Auto-reconnect is disabled when the user sends the disconnect command. Fixes: https://todo.sr.ht/~rjarry/aerc/1 Signed-off-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'worker/types/messages.go')
-rw-r--r--worker/types/messages.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go
index a5eae8d..d8f1f56 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -68,6 +68,10 @@ type Connect struct {
Message
}
+type Reconnect struct {
+ Message
+}
+
type Disconnect struct {
Message
}