Documentation ¶
Index ¶
- type EventDispatcher
- type InMemoryEventDispatcher
- func (d *InMemoryEventDispatcher) GetHandler(ctx context.Context) multichannelfanout.MultiChannelEventHandler
- func (d *InMemoryEventDispatcher) GetReceiver() kncloudevents.HTTPEventReceiver
- func (d *InMemoryEventDispatcher) Start(ctx context.Context) error
- func (d *InMemoryEventDispatcher) WaitReady()
- type InMemoryEventDispatcherArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDispatcher ¶ added in v0.39.0
type EventDispatcher interface {
GetHandler(ctx context.Context) multichannelfanout.MultiChannelEventHandler
}
type InMemoryEventDispatcher ¶ added in v0.39.0
type InMemoryEventDispatcher struct {
// contains filtered or unexported fields
}
func NewEventDispatcher ¶ added in v0.39.0
func NewEventDispatcher(args *InMemoryEventDispatcherArgs) *InMemoryEventDispatcher
func (*InMemoryEventDispatcher) GetHandler ¶ added in v0.39.0
func (d *InMemoryEventDispatcher) GetHandler(ctx context.Context) multichannelfanout.MultiChannelEventHandler
GetHandler gets the current multichannelfanout.EventHandler to delegate all HTTP requests to.
func (*InMemoryEventDispatcher) GetReceiver ¶ added in v0.39.0
func (d *InMemoryEventDispatcher) GetReceiver() kncloudevents.HTTPEventReceiver
func (*InMemoryEventDispatcher) Start ¶ added in v0.39.0
func (d *InMemoryEventDispatcher) Start(ctx context.Context) error
Start starts the inmemory dispatcher's message processing. This is a blocking call.
func (*InMemoryEventDispatcher) WaitReady ¶ added in v0.39.0
func (d *InMemoryEventDispatcher) WaitReady()
WaitReady blocks until the dispatcher's server is ready to receive requests.
type InMemoryEventDispatcherArgs ¶ added in v0.39.0
type InMemoryEventDispatcherArgs struct { Port int ReadTimeout time.Duration WriteTimeout time.Duration Handler multichannelfanout.MultiChannelEventHandler Logger *zap.Logger HTTPEventReceiverOptions []kncloudevents.HTTPEventReceiverOption }
Click to show internal directories.
Click to hide internal directories.