MCPcopy
hub / github.com/kubernetes/client-go / newBroadcaster

Function newBroadcaster

tools/events/event_broadcaster.go:97–104  ·  view source on GitHub ↗

NewBroadcasterForTest Creates a new event broadcaster for test purposes.

(sink EventSink, sleepDuration time.Duration, eventCache map[eventKey]*v1beta1.Event)

Source from the content-addressed store, hash-verified

95
96// NewBroadcasterForTest Creates a new event broadcaster for test purposes.
97func newBroadcaster(sink EventSink, sleepDuration time.Duration, eventCache map[eventKey]*v1beta1.Event) EventBroadcaster {
98 return &eventBroadcasterImpl{
99 Broadcaster: watch.NewBroadcaster(maxQueuedEvents, watch.DropIfChannelFull),
100 eventCache: eventCache,
101 sleepDuration: sleepDuration,
102 sink: sink,
103 }
104}
105
106// refreshExistingEventSeries refresh events TTL
107func (e *eventBroadcasterImpl) refreshExistingEventSeries() {

Callers 4

TestEventSeriesfFunction · 0.85
TestFinishSeriesFunction · 0.85
NewBroadcasterFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestEventSeriesfFunction · 0.68
TestFinishSeriesFunction · 0.68