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 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
Click to show internal directories.
Click to hide internal directories.