eventsourcing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID             string
	Type           EventType
	Payload        interface{}
	CreatedAt      time.Time
	AggregateIndex uint
}

Event is the structure of an event

type EventType

type EventType string

EventType is the type of event

const (
	AddOrder        EventType = "addOrder"
	UpdateOrder     EventType = "updateOrder"
	UpdateQuantity  EventType = "updateQuantity"
	AddOrderLine    EventType = "addOrderLine"
	DeleteOrderLine EventType = "deleteOrderLine"
	UpdateOrderLine EventType = "updateOrderLine"
)

EventType types

Jump to

Keyboard shortcuts

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