Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventPreprocessor ¶
type EventPreprocessor struct {
// contains filtered or unexported fields
}
EventPreprocessor identifies the EventType for incoming events and routes them to the EventRouter. In case of List events, it buffers constituting list pages and provides the router with consolidated list events
func New ¶
func New(logger logr.Logger, router EventRouter) *EventPreprocessor
New instantiates a new EventPreprocessor which passes the event to a router object
func (*EventPreprocessor) ReceiveEvent ¶
func (processor *EventPreprocessor) ReceiveEvent(ctx context.Context, req *pb.EventRequest) (pb.ResponseType, error)
ReceiveEvent receives pb.EventRequest and passes it to watch/list handler
type EventReceiver ¶
type EventReceiver interface {
ReceiveEvent(ctx context.Context, req *pb.EventRequest) (pb.ResponseType, error)
}
type EventRouter ¶
type EventRouter interface {
RouteEvent(key RequestKey) chan *EventMessage
}
Click to show internal directories.
Click to hide internal directories.