filter

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 49 Imported by: 10 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FilterAudience = "mt-broker-filter"

	ScopeName = "knative.dev/pkg/broker/filter"
)

Variables

This section is empty.

Functions

func NewServerManager added in v0.38.0

func NewServerManager(
	ctx context.Context,
	logger *zap.Logger,
	cmw configmap.Watcher,
	httpPort, httpsPort int,
	meterProvider metric.MeterProvider,
	traceProvider trace.TracerProvider,
	handler *Handler,
) (*eventingtls.ServerManager, error)

Types

type Handler

type Handler struct {
	EventTypeCreator *eventtype.EventTypeAutoHandler
	// contains filtered or unexported fields
}

Handler parses Cloud Events, determines if they pass a filter, and sends them to a subscriber.

func NewHandler

func NewHandler(
	logger *zap.Logger,
	tokenVerifier *auth.Verifier,
	oidcTokenProvider *auth.OIDCTokenProvider,
	triggerInformer v1.TriggerInformer,
	brokerInformer v1.BrokerInformer,
	subscriptionInformer messaginginformers.SubscriptionInformer,
	trustBundleConfigMapLister corev1listers.ConfigMapNamespaceLister,
	wc func(ctx context.Context) context.Context,
	meterProvider metric.MeterProvider,
	traceProvider trace.TracerProvider,
) (*Handler, error)

NewHandler creates a new Handler and its associated EventReceiver.

func (*Handler) ServeHTTP added in v0.22.0

func (h *Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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