Documentation ¶
Index ¶
- type EventManager
- func (manager *EventManager) BindRetryPubEvent(event freedom.DomainEvent)
- func (manager *EventManager) BindRetrySubEvent(event freedom.DomainEvent, function interface{})
- func (manager *EventManager) Booting(bootManager freedom.BootManager)
- func (manager *EventManager) GetPublisherChan() <-chan freedom.DomainEvent
- func (manager *EventManager) InsertSubEvent(event freedom.DomainEvent) error
- func (manager *EventManager) Retry()
- func (manager *EventManager) Save(repo *freedom.Repository, entity freedom.Entity) (e error)
- func (manager *EventManager) SetRetryPolicy(delay time.Duration, retries int)
- type EventTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventManager ¶
EventManager .
func (*EventManager) BindRetryPubEvent ¶ added in v1.8.10
func (manager *EventManager) BindRetryPubEvent(event freedom.DomainEvent)
BindRetryPubEvent .
func (*EventManager) BindRetrySubEvent ¶ added in v1.8.10
func (manager *EventManager) BindRetrySubEvent(event freedom.DomainEvent, function interface{})
BindRetrySubEvent .
func (*EventManager) Booting ¶
func (manager *EventManager) Booting(bootManager freedom.BootManager)
Booting .
func (*EventManager) GetPublisherChan ¶
func (manager *EventManager) GetPublisherChan() <-chan freedom.DomainEvent
GetPublisherChan .
func (*EventManager) InsertSubEvent ¶
func (manager *EventManager) InsertSubEvent(event freedom.DomainEvent) error
InsertSubEvent .
func (*EventManager) Save ¶
func (manager *EventManager) Save(repo *freedom.Repository, entity freedom.Entity) (e error)
Save .
func (*EventManager) SetRetryPolicy ¶ added in v1.8.8
func (manager *EventManager) SetRetryPolicy(delay time.Duration, retries int)
SetRetryPolicy Set the rules for retry.
type EventTransaction ¶
type EventTransaction struct {
transaction.GormImpl
}
EventTransaction .
func (*EventTransaction) Execute ¶
func (et *EventTransaction) Execute(fun func() error) (e error)
Execute .
Click to show internal directories.
Click to hide internal directories.