File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ func (m *MockProcessor) ProcessEvent(event event.UserEvent) bool {
58
58
return result
59
59
}
60
60
61
+ func (m * MockProcessor ) OnEventDispatch (callback func (logEvent event.LogEvent )) (int , error ) {
62
+ return 0 , nil
63
+ }
64
+
65
+ func (m * MockProcessor ) RemoveOnEventDispatch (id int ) error {
66
+ return nil
67
+ }
68
+
61
69
type MockNotificationCenter struct {
62
70
notification.Center
63
71
mock.Mock
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ import (
35
35
// Processor processes events
36
36
type Processor interface {
37
37
ProcessEvent (event UserEvent ) bool
38
+ OnEventDispatch (callback func (logEvent LogEvent )) (int , error )
39
+ RemoveOnEventDispatch (id int ) error
38
40
}
39
41
40
42
// BatchEventProcessor is used out of the box by the SDK to queue up and batch events to be sent to the Optimizely
You can’t perform that action at this time.
0 commit comments