domainevent

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventManager

type EventManager struct {
	freedom.Infra
	// contains filtered or unexported fields
}

EventManager .

func GetEventManager

func GetEventManager() *EventManager

GetEventManager .

func (*EventManager) Booting

func (manager *EventManager) Booting(sb freedom.SingleBoot)

Booting .

func (*EventManager) InsertSubEvent

func (manager *EventManager) InsertSubEvent(event freedom.DomainEvent) error

InsertSubEvent .

func (*EventManager) Retry

func (manager *EventManager) Retry()

Retry .

func (*EventManager) Save

func (manager *EventManager) Save(repo *freedom.Repository, entity freedom.Entity) (e error)

Save .

type EventTransaction

type EventTransaction struct {
	transaction.GormImpl
}

EventTransaction .

func (*EventTransaction) Execute

func (et *EventTransaction) Execute(fun func() error) (e error)

Execute .

func (*EventTransaction) ExecuteTx

func (et *EventTransaction) ExecuteTx(ctx context.Context, fun func() error, opts *sql.TxOptions) (e error)

ExecuteTx .

Jump to

Keyboard shortcuts

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