Signed-off-by: steadytao <mail@steadytao.com> Signed-off-by: Jakob Borg <jakob@kastelo.net> Co-authored-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -57,6 +57,7 @@ const (
|
||||
ListenAddressesChanged
|
||||
LoginAttempt
|
||||
Failure
|
||||
UpgradeRestartScheduled
|
||||
|
||||
AllEvents = (1 << iota) - 1
|
||||
)
|
||||
@@ -134,6 +135,8 @@ func (t EventType) String() string {
|
||||
return "FolderWatchStateChanged"
|
||||
case Failure:
|
||||
return "Failure"
|
||||
case UpgradeRestartScheduled:
|
||||
return "UpgradeRestartScheduled"
|
||||
default:
|
||||
return "Unknown"
|
||||
}
|
||||
@@ -221,6 +224,8 @@ func UnmarshalEventType(s string) EventType {
|
||||
return FolderWatchStateChanged
|
||||
case "Failure":
|
||||
return Failure
|
||||
case "UpgradeRestartScheduled":
|
||||
return UpgradeRestartScheduled
|
||||
default:
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user