signaler

package
v1.15.0-pre.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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 NewBGPCPSignaler

func NewBGPCPSignaler() *BGPCPSignaler

NewSignaler constructs a Signaler

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL