Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryMessageDispatcher ¶ added in v0.14.0
type InMemoryMessageDispatcher struct {
// contains filtered or unexported fields
}
func NewMessageDispatcher ¶ added in v0.14.0
func NewMessageDispatcher(args *InMemoryMessageDispatcherArgs) *InMemoryMessageDispatcher
func (*InMemoryMessageDispatcher) GetHandler ¶ added in v0.19.0
func (d *InMemoryMessageDispatcher) GetHandler(ctx context.Context) multichannelfanout.MultiChannelMessageHandler
GetHandler gets the current multichannelfanout.MessageHandler to delegate all HTTP requests to.
func (*InMemoryMessageDispatcher) Start ¶ added in v0.14.0
func (d *InMemoryMessageDispatcher) Start(ctx context.Context) error
Start starts the inmemory dispatcher's message processing. This is a blocking call.
func (*InMemoryMessageDispatcher) WaitReady ¶ added in v0.24.0
func (d *InMemoryMessageDispatcher) WaitReady()
WaitReady blocks until the dispatcher's server is ready to receive requests.
type InMemoryMessageDispatcherArgs ¶ added in v0.14.0
type InMemoryMessageDispatcherArgs struct { Port int ReadTimeout time.Duration WriteTimeout time.Duration Handler multichannelfanout.MultiChannelMessageHandler Logger *zap.Logger HTTPMessageReceiverOptions []kncloudevents.HTTPMessageReceiverOption }
type MessageDispatcher ¶ added in v0.14.0
type MessageDispatcher interface {
GetHandler(ctx context.Context) multichannelfanout.MultiChannelMessageHandler
}
Click to show internal directories.
Click to hide internal directories.