-
Notifications
You must be signed in to change notification settings - Fork 249
/
Copy pathevents_sync_from_waku.go
40 lines (29 loc) · 1.27 KB
/
events_sync_from_waku.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package signal
import "encoding/json"
const (
// EventWakuFetchingBackupProgress is emitted while applying fetched data is ongoing
EventWakuFetchingBackupProgress = "waku.fetching.backup.progress"
// EventSyncFromWakuProfile is emitted while applying fetched profile data from waku
EventWakuBackedUpProfile = "waku.backedup.profile"
// EventWakuBackedUpSettings is emitted while applying fetched settings from waku
EventWakuBackedUpSettings = "waku.backedup.settings"
// EventWakuBackedUpKeypair is emitted while applying fetched keypair data from waku
EventWakuBackedUpKeypair = "waku.backedup.keypair"
// EventWakuBackedUpWatchOnlyAccount is emitted while applying fetched watch only account data from waku
EventWakuBackedUpWatchOnlyAccount = "waku.backedup.watch-only-account" // #nosec G101
)
func SendWakuFetchingBackupProgress(obj json.Marshaler) {
send(EventWakuFetchingBackupProgress, obj)
}
func SendWakuBackedUpProfile(obj json.Marshaler) {
send(EventWakuBackedUpProfile, obj)
}
func SendWakuBackedUpSettings(obj json.Marshaler) {
send(EventWakuBackedUpSettings, obj)
}
func SendWakuBackedUpKeypair(obj json.Marshaler) {
send(EventWakuBackedUpKeypair, obj)
}
func SendWakuBackedUpWatchOnlyAccount(obj json.Marshaler) {
send(EventWakuBackedUpWatchOnlyAccount, obj)
}