Documentation ¶
Index ¶
Constants ¶
View Source
const (
FilterAudience = "mt-broker-filter"
)
Variables ¶
This section is empty.
Functions ¶
func NewServerManager ¶ added in v0.38.0
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.OIDCTokenVerifier, oidcTokenProvider *auth.OIDCTokenProvider, triggerInformer v1.TriggerInformer, brokerInformer v1.BrokerInformer, reporter StatsReporter, trustBundleConfigMapLister corev1listers.ConfigMapNamespaceLister, wc func(ctx context.Context) context.Context) (*Handler, error)
NewHandler creates a new Handler and its associated EventReceiver.
type ReportArgs ¶
type ReportArgs struct {
// contains filtered or unexported fields
}
type StatsReporter ¶
type StatsReporter interface { ReportEventCount(args *ReportArgs, responseCode int) error ReportEventDispatchTime(args *ReportArgs, responseCode int, d time.Duration) error ReportEventProcessingTime(args *ReportArgs, d time.Duration) error }
StatsReporter defines the interface for sending filter metrics.
func NewStatsReporter ¶
func NewStatsReporter(container, uniqueName string) StatsReporter
NewStatsReporter creates a reporter that collects and reports filter metrics.
Click to show internal directories.
Click to hide internal directories.