tm

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInboxHandlerMiddleware

func NewInboxHandlerMiddleware(store InboxStore) am.RawMessageHandlerMiddleware

func NewOutboxStreamMiddleware

func NewOutboxStreamMiddleware(store OutboxStore) am.RawMessageStreamMiddleware

Types

type ErrDuplicateMessage

type ErrDuplicateMessage string

func (ErrDuplicateMessage) Error

func (e ErrDuplicateMessage) Error() string

type InboxStore

type InboxStore interface {
	Save(ctx context.Context, msg am.RawMessage) error
}

type OutboxProcessor

type OutboxProcessor interface {
	Start(ctx context.Context) error
}

func NewOutboxProcessor

func NewOutboxProcessor(publisher am.RawMessagePublisher, store OutboxStore) OutboxProcessor

type OutboxStore

type OutboxStore interface {
	Save(ctx context.Context, msg am.RawMessage) error
	FindUnpublished(ctx context.Context, limit int) ([]am.RawMessage, error)
	MarkPublished(ctx context.Context, ids ...string) error
}

Jump to

Keyboard shortcuts

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