events

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package events ... Copyright 2019 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler added in v1.9.2

type EventHandler interface {
	HandleEvent(kubeEvent common.KubeEvent) error
}

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router listens for events coming from a SharedIndexInformer, and forwards them to the registered sinks

func NewRouter

func NewRouter(informer cache.SharedIndexInformer, handlers map[string]EventHandler, opts ...router.ConfigOption) *Router

NewRouter returns a new Router which listens to the given SharedIndexInformer, and forwards all incoming events to the given sinks

func (*Router) Run

func (r *Router) Run(stopChan <-chan struct{})

Run listens to the workQueue and forwards incoming events to all registered sinks

Jump to

Keyboard shortcuts

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