Initial Prototype of Event Hooks #488
No reviewers
Labels
No Label
applications
BLOCKED
bug
design
duplicate
enhancement
fixed?
funding-needed
help wanted
infrastructure
invalid
payments
qubes
question
ready-for-implementation
refactor
spam
tapir-server
testing
tor
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch#488
Loading…
Reference in New Issue
No description provided.
Delete Branch "eventhooks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR provide a working sketch of the cwtch stable event hook system.
Currently Implemented:
To do:
Current actions requires: Initial review / comments / thoughts.
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/106
@ -0,0 +9,4 @@
type ProfileHooks interface {
// RegisterEvents returns a set of events that the extension is interested hooking
RegisterEvents() []event.Type
EventsToRegister()
@ -0,0 +12,4 @@
RegisterEvents() []event.Type
// RegisterExperiments RegisterExperiments returns a set of experiments that the extension is interested in being notified about
RegisterExperiments() []string
ExperimentsToRegister
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/108
@ -69,0 +77,4 @@
// many other parts of Cwtch are likely to fail also.
settings, err := InitGlobalSettingsFile(appDirectory, DefactoPasswordForUnencryptedProfiles)
if err != nil {
log.Errorf("error initializing global settings file %. Global settings might not be loaded or saves", err)
s/saves/saved/ ?
should we return or exit tho?
WIP: Initial Prototype of Event Hooksto Initial Prototype of Event HooksDrone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/109
71c0149f10
tod2fd57853a
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/111
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/112