Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServerManager ¶ added in v0.38.0
Types ¶
type Handler ¶
type Handler struct { // Defaults sets default values to incoming events Defaulter client.EventDefaulter // Reporter reports stats of status code and dispatch time Reporter StatsReporter // BrokerLister gets broker objects BrokerLister eventinglisters.BrokerLister EvenTypeHandler *eventtype.EventTypeAutoHandler Logger *zap.Logger // contains filtered or unexported fields }
func NewHandler ¶ added in v0.38.0
func NewHandler(logger *zap.Logger, reporter StatsReporter, defaulter client.EventDefaulter, brokerInformer v1.BrokerInformer, tokenVerifier *auth.Verifier, oidcTokenProvider *auth.OIDCTokenProvider, trustBundleConfigMapLister corev1listers.ConfigMapNamespaceLister, withContext func(ctx context.Context) context.Context) (*Handler, error)
type ReportArgs ¶ added in v0.9.0
type ReportArgs struct {
// contains filtered or unexported fields
}
type StatsReporter ¶ added in v0.9.0
type StatsReporter interface { ReportEventCount(args *ReportArgs, responseCode int) error ReportEventDispatchTime(args *ReportArgs, responseCode int, d time.Duration) error }
StatsReporter defines the interface for sending ingress metrics.
func NewStatsReporter ¶ added in v0.9.0
func NewStatsReporter(container, uniqueName string) StatsReporter
NewStatsReporter creates a reporter that collects and reports ingress metrics.
Click to show internal directories.
Click to hide internal directories.