outbox

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package outbox provides MySQL-specific implementations of the interfaces in Ax's top-level "outbox" package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct{}

Repository is a MySQL-backed implementation of Ax's outbox.Repository interface.

func (Repository) LoadOutbox

LoadOutbox loads the unsent outbound messages that were produced when the message identified by id was first processed.

func (Repository) MarkAsSent

func (Repository) MarkAsSent(
	ctx context.Context,
	ptx persistence.Tx,
	env endpoint.OutboundEnvelope,
) error

MarkAsSent marks a message as sent, removing it from the outbox.

func (Repository) SaveOutbox

func (Repository) SaveOutbox(
	ctx context.Context,
	ptx persistence.Tx,
	id ax.MessageID,
	envs []endpoint.OutboundEnvelope,
) error

SaveOutbox saves a set of unsent outbound messages that were produced when the message identified by id was processed.

Jump to

Keyboard shortcuts

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