...
1 package ldcomponents
2
3 import (
4 ldevents "github.com/launchdarkly/go-sdk-events/v2"
5 "github.com/launchdarkly/go-server-sdk/v6/subsystems"
6 )
7
8 type nullEventProcessorFactory struct{}
9
10
11
12
13
14
15
16
17
18 func NoEvents() subsystems.ComponentConfigurer[ldevents.EventProcessor] {
19 return nullEventProcessorFactory{}
20 }
21
22 func (f nullEventProcessorFactory) Build(
23 context subsystems.ClientContext,
24 ) (ldevents.EventProcessor, error) {
25 return ldevents.NewNullEventProcessor(), nil
26 }
27
28
29
30
31 func (f nullEventProcessorFactory) IsNullEventProcessorFactory() bool {
32 return true
33 }
34
View as plain text