NewBroadcasterForTest Creates a new event broadcaster for test purposes.
(sink EventSink, sleepDuration time.Duration, eventCache map[eventKey]*v1beta1.Event)
| 95 | |
| 96 | // NewBroadcasterForTest Creates a new event broadcaster for test purposes. |
| 97 | func 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 |
| 107 | func (e *eventBroadcasterImpl) refreshExistingEventSeries() { |
no outgoing calls