metadata

package
v1.80.0-pref-login-name.8 Latest Latest
Warning

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

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

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) Data

func (e *SetEvent) Data() interface{}

func (*SetEvent) UniqueConstraints

func (e *SetEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

Jump to

Keyboard shortcuts

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