mysql

package
v0.0.0-...-a50e536 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSagaStore

func NewSagaStore(svcName string, txProvider gbus.TxProvider) saga.Store

NewSagaStore creates a bew SagaStore

func NewTxProvider

func NewTxProvider(connStr string) (gbus.TxProvider, error)

NewTxProvider returns a new PgProvider

Types

type SagaStore

type SagaStore struct {
	*tx.SagaStore
}

SagaStore implements the saga/store interface on top of PostgreSQL

type TxOutbox

type TxOutbox struct {
	ID string
	// contains filtered or unexported fields
}

TxOutbox is a mysql based transactional outbox

func NewOutbox

func NewOutbox(svcName string, txProv gbus.TxProvider, purgeOnStartup bool) *TxOutbox

NewOutbox creates a new mysql transactional outbox

func (*TxOutbox) Save

func (outbox *TxOutbox) Save(tx *sql.Tx, exchange, routingKey string, amqpMessage amqp.Publishing) error

Save stores a message in a DB to ensure delivery

func (*TxOutbox) Start

func (outbox *TxOutbox) Start(amqpOut *gbus.AMQPOutbox) error

Start starts the transactional outbox that is used to send messages in sync with domain object change

func (*TxOutbox) Stop

func (outbox *TxOutbox) Stop() error

Stop forcess the transactional outbox to stop processing additional messages

Jump to

Keyboard shortcuts

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