Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright Authors of Cilium
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGPCPSignaler ¶
type BGPCPSignaler struct {
Sig chan struct{}
}
BGPCPSignaler multiplexes multiple event sources into a single level-triggered event instructing the BGP Control Plane Controller to perform reconciliation.
BGPCPSignaler should always be constructed with a channel of size 1.
Use of a BGPCPSignaler allows for bursts of events to be "rolled-up". This is a suitable approach since the Controller checks the entire state of the world on each iteration of its control loop.
Additionally, this precludes any need for ordering between different event sources.
func (BGPCPSignaler) Event ¶
func (s BGPCPSignaler) Event(_ interface{})
Event adds an edge triggered event to the Signaler.
A controller which uses this Signaler will be notified of this event some time after.
This signature adheres to the common event handling signatures of cache.ResourceEventHandlerFuncs for convenience.