Documentation ¶
Index ¶
- type EventManager
- func (manager *EventManager) Booting(sb freedom.SingleBoot)
- func (manager *EventManager) InsertSubEvent(event freedom.DomainEvent) error
- func (manager *EventManager) RetryPubEvent(event freedom.DomainEvent)
- func (manager *EventManager) RetrySubEvent(event freedom.DomainEvent, function interface{})
- func (manager *EventManager) Save(repo *freedom.Repository, entity freedom.Entity) (e error)
- func (manager *EventManager) SetRetryPolicy(delay, interval 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) Booting ¶
func (manager *EventManager) Booting(sb freedom.SingleBoot)
Booting .
func (*EventManager) InsertSubEvent ¶
func (manager *EventManager) InsertSubEvent(event freedom.DomainEvent) error
InsertSubEvent .
func (*EventManager) RetryPubEvent ¶ added in v1.8.8
func (manager *EventManager) RetryPubEvent(event freedom.DomainEvent)
RetryPubEvent .
func (*EventManager) RetrySubEvent ¶ added in v1.8.8
func (manager *EventManager) RetrySubEvent(event freedom.DomainEvent, function interface{})
RetrySubEvent .
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, interval 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.