2022-11-30 09:41:35 +00:00
|
|
|
package signal
|
|
|
|
|
|
|
|
import "encoding/json"
|
|
|
|
|
|
|
|
const (
|
2023-02-27 10:19:18 +00:00
|
|
|
// EventWakuFetchingBackupProgress is emitted while applying fetched data is ongoing
|
2022-11-30 09:41:35 +00:00
|
|
|
EventWakuFetchingBackupProgress = "waku.fetching.backup.progress"
|
|
|
|
|
2023-02-27 10:19:18 +00:00
|
|
|
// EventSyncFromWakuProfile is emitted while applying fetched profile data from waku
|
2022-11-30 09:41:35 +00:00
|
|
|
EventWakuBackedUpProfile = "waku.backedup.profile"
|
|
|
|
|
2023-02-27 10:19:18 +00:00
|
|
|
// EventWakuBackedUpSettings is emitted while applying fetched settings from waku
|
2022-11-30 09:41:35 +00:00
|
|
|
EventWakuBackedUpSettings = "waku.backedup.settings"
|
2023-02-27 10:19:18 +00:00
|
|
|
|
2023-05-16 10:48:00 +00:00
|
|
|
// EventWakuBackedUpKeypair is emitted while applying fetched keypair data from waku
|
|
|
|
EventWakuBackedUpKeypair = "waku.backedup.keypair"
|
2023-04-19 14:44:57 +00:00
|
|
|
|
2023-05-16 10:48:00 +00:00
|
|
|
// EventWakuBackedUpWatchOnlyAccount is emitted while applying fetched watch only account data from waku
|
|
|
|
EventWakuBackedUpWatchOnlyAccount = "waku.backedup.watch-only-account" // #nosec G101
|
2022-11-30 09:41:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func SendWakuFetchingBackupProgress(obj json.Marshaler) {
|
|
|
|
send(EventWakuFetchingBackupProgress, obj)
|
|
|
|
}
|
|
|
|
|
|
|
|
func SendWakuBackedUpProfile(obj json.Marshaler) {
|
|
|
|
send(EventWakuBackedUpProfile, obj)
|
|
|
|
}
|
|
|
|
|
|
|
|
func SendWakuBackedUpSettings(obj json.Marshaler) {
|
|
|
|
send(EventWakuBackedUpSettings, obj)
|
|
|
|
}
|
2023-02-27 10:19:18 +00:00
|
|
|
|
2023-05-16 10:48:00 +00:00
|
|
|
func SendWakuBackedUpKeypair(obj json.Marshaler) {
|
|
|
|
send(EventWakuBackedUpKeypair, obj)
|
2023-04-19 14:44:57 +00:00
|
|
|
}
|
|
|
|
|
2023-05-16 10:48:00 +00:00
|
|
|
func SendWakuBackedUpWatchOnlyAccount(obj json.Marshaler) {
|
|
|
|
send(EventWakuBackedUpWatchOnlyAccount, obj)
|
|
|
|
}
|