inmemorychannel

package
v0.31.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 8

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

GetHandler gets the current multichannelfanout.MessageHandler to delegate all HTTP requests to.

func (*InMemoryMessageDispatcher) Start added in v0.14.0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL