Documentation ¶
Index ¶
Constants ¶
View Source
const ( SetEventType = "metadata.set" RemovedEventType = "metadata.removed" RemovedAllEventType = "metadata.removed.all" )
Variables ¶
This section is empty.
Functions ¶
func RemovedAllEventMapper ¶
func RemovedAllEventMapper(event *repository.Event) (eventstore.Event, error)
func RemovedEventMapper ¶
func RemovedEventMapper(event *repository.Event) (eventstore.Event, error)
func SetEventMapper ¶
func SetEventMapper(event *repository.Event) (eventstore.Event, error)
Types ¶
type RemovedAllEvent ¶
type RemovedAllEvent struct {
eventstore.BaseEvent `json:"-"`
}
func NewRemovedAllEvent ¶
func NewRemovedAllEvent( base *eventstore.BaseEvent, ) *RemovedAllEvent
func (*RemovedAllEvent) Data ¶
func (e *RemovedAllEvent) Data() interface{}
func (*RemovedAllEvent) UniqueConstraints ¶
func (e *RemovedAllEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
type RemovedEvent ¶
type RemovedEvent struct { eventstore.BaseEvent `json:"-"` Key string `json:"key"` }
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
type SetEvent ¶
type SetEvent struct { eventstore.BaseEvent `json:"-"` Key string `json:"key"` Value []byte `json:"value"` }
func NewSetEvent ¶
func NewSetEvent( base *eventstore.BaseEvent, key string, value []byte, ) *SetEvent
func (*SetEvent) UniqueConstraints ¶
func (e *SetEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
Click to show internal directories.
Click to hide internal directories.