asset

package
v0.0.0-...-860e413 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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