package
0.5.0
Repository: https://github.com/jmalloc/ax.git
Documentation: pkg.go.dev

# Functions

BeginTx starts a new transaction using the data store in ctx.
GetDataStore returns the DataStore in ctx.
GetOrBeginTx returns the transaction stored in ctx, or starts a new one if ctx does not contain a transaction.
GetTx returns the transaction stored in ctx.
WithDataStore returns a new context derived from parent that contains a DataStore.
WithTx returns a new context derived from parent that contains a transaction.

# Structs

InboundInjector is an implementation of endpoint.InboundPipeline that injects a data store into the context.
OutboundInjector is an implementation of endpoint.OutboundPipeline that injects a data store into the context.

# Interfaces

Committer is an interface used to commit and rollback persistence transactions.
DataStore is an interface for accessing a transactional data store.
Tx represents an atomic unit-of-work performed on a DataStore.