event

package
v0.0.5-0...-8e55a6f Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UowKind = "event"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Transactional

type Transactional struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTransactional

func NewTransactional(ctx context.Context, producer event.Producer) *Transactional

func (*Transactional) Begin

func (t *Transactional) Begin(opt ...*sql.TxOptions) (db uow.Txn, err error)

func (*Transactional) Commit

func (t *Transactional) Commit() error

func (*Transactional) Rollback

func (t *Transactional) Rollback() error

func (*Transactional) Send

func (t *Transactional) Send(msg ...event.Event) error

Jump to

Keyboard shortcuts

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