Documentation ¶
Index ¶
Constants ¶
View Source
const ( AddedEventType = "asset.added" RemovedEventType = "asset.removed" )
Variables ¶
This section is empty.
Functions ¶
func AddedEventMapper ¶
func AddedEventMapper(event *repository.Event) (eventstore.Event, error)
func RemovedEventMapper ¶
func RemovedEventMapper(event *repository.Event) (eventstore.Event, error)
Types ¶
type AddedEvent ¶
type AddedEvent struct { eventstore.BaseEvent `json:"-"` StoreKey string `json:"storeKey"` }
func NewAddedEvent ¶
func NewAddedEvent( base *eventstore.BaseEvent, key string, ) *AddedEvent
func (*AddedEvent) Data ¶
func (e *AddedEvent) Data() interface{}
func (*AddedEvent) UniqueConstraints ¶
func (e *AddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type RemovedEvent ¶
type RemovedEvent struct { eventstore.BaseEvent `json:"-"` StoreKey string `json:"storeKey"` }
func NewRemovedEvent ¶
func NewRemovedEvent( base *eventstore.BaseEvent, key string, ) *RemovedEvent
func (*RemovedEvent) Data ¶
func (e *RemovedEvent) Data() interface{}
func (*RemovedEvent) UniqueConstraints ¶
func (e *RemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
Click to show internal directories.
Click to hide internal directories.