...
1 package ldevents
2
3 import (
4 "encoding/json"
5 "time"
6 )
7
8 type nullEventProcessor struct{}
9
10
11 func NewNullEventProcessor() EventProcessor {
12 return nullEventProcessor{}
13 }
14
15 func (n nullEventProcessor) RecordEvaluation(ed EvaluationData) {}
16
17 func (n nullEventProcessor) RecordIdentifyEvent(e IdentifyEventData) {}
18
19 func (n nullEventProcessor) RecordCustomEvent(e CustomEventData) {}
20
21 func (n nullEventProcessor) RecordRawEvent(data json.RawMessage) {}
22
23 func (n nullEventProcessor) Flush() {}
24
25 func (n nullEventProcessor) FlushBlocking(time.Duration) bool { return true }
26
27 func (n nullEventProcessor) Close() error {
28 return nil
29 }
30
View as plain text