delayedmessage

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package delayedmessage provides MySQL-specific implementations of the interfaces in Ax's top-level "delayedmessage" 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 delayedmessage.Repository interface.

func (Repository) LoadNextMessage

LoadNextMessage loads the next that is scheduled to be sent.

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 repository.

func (Repository) SaveMessage

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

SaveMessage saves a message to be sent at a later time. If does NOT return an error if the message already exists in the repository.

Jump to

Keyboard shortcuts

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