axmysql

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: 16 Imported by: 0

Documentation

Overview

Package axmysql provides MySQL-backed implementations of various interfaces consumed by Ax.

Index

Constants

This section is empty.

Variables

DelayedMessageRepository is an delayed message repository backed by a MySQL database.

MessageStore is a message store backed by a MySQL database.

OutboxRepository is an outbox repository backed by a MySQL database.

ProjectionOffsetStore is an offset store backed by a MySQL database.

View Source
var SagaCRUDRepository crud.Repository = saga.CRUDRepository{}

SagaCRUDRepository is a CRUD saga repository backed by a MySQL database.

View Source
var SagaKeySetRepository keyset.Repository = saga.KeySetRepository{}

SagaKeySetRepository is a key-set repository backed by a MySQL database.

SagaSnapshotRepository is a saga snapshot repository backed by a MySQL database.

Functions

func GetDB

func GetDB(ctx context.Context) *sql.DB

GetDB returns the SQL database contained in ctx.

It panics if ctx does not contain a MySQL-specific SQL database.

func GetTx

func GetTx(ctx context.Context) *sql.Tx

GetTx returns the SQL transaction contained in ctx.

It panics if ctx does not contain a MySQL-specific SQL transaction.

func NewDataStore

func NewDataStore(db *sql.DB) persistence.DataStore

NewDataStore returns a new data store that is backed by a MySQL database.

func NewReadModelProjector

func NewReadModelProjector(rm mysqlprojection.ReadModel) projection.Projector

NewReadModelProjector returns a new projector that builds a MySQL based read-model from a stream of events.

Types

This section is empty.

Directories

Path Synopsis
Package delayedmessage provides MySQL-specific implementations of the interfaces in Ax's top-level "delayedmessage" package.
Package delayedmessage provides MySQL-specific implementations of the interfaces in Ax's top-level "delayedmessage" package.
internal
envelopestore
Package envelopestore provides common implementation used by repositories that persist outbound envelopes.
Package envelopestore provides common implementation used by repositories that persist outbound envelopes.
Package messagestore provides MySQL-specific implementations of the interfaces in Ax's top-level "messagestore" package.
Package messagestore provides MySQL-specific implementations of the interfaces in Ax's top-level "messagestore" package.
Package outbox provides MySQL-specific implementations of the interfaces in Ax's top-level "outbox" package.
Package outbox provides MySQL-specific implementations of the interfaces in Ax's top-level "outbox" package.
Package persistence provides MySQL-specific implementations of the interfaces in Ax's top-level "persistence" package.
Package persistence provides MySQL-specific implementations of the interfaces in Ax's top-level "persistence" package.
Package saga provides MySQL-specific implementations of the interfaces in Ax's top-level "saga" package.
Package saga provides MySQL-specific implementations of the interfaces in Ax's top-level "saga" package.

Jump to

Keyboard shortcuts

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