memory

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	// contains filtered or unexported fields
}

func New

func New(logger *log.Logger, queueSize int) *Broker

New allocates and returns an in-memory Broker with provided queue size.

func (*Broker) Close

func (b *Broker) Close() error

func (*Broker) Publish

func (b *Broker) Publish(ctx context.Context, event broker.Publishable) error

func (*Broker) StartConsumer

func (b *Broker) StartConsumer(handlers map[string]func([]byte) error, errorHandler func(msgType string, msgBody []byte, err error)) error

Jump to

Keyboard shortcuts

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