inbox

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDKey added in v0.4.1

type IDKey struct{}

type Inboxer added in v0.4.1

type Inboxer interface {
	ID() string
	Start() error
	Close() error
	Consume(ctx context.Context, handler MessageHandler) error
}

func New added in v0.4.1

func New(ctx context.Context, receiver pubsub.Receiver) Inboxer

type MessageHandler

type MessageHandler func(ctx context.Context, msgCtx message.Context) error

Jump to

Keyboard shortcuts

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