domain

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 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 interface {
	OccurredOn() time.Time
	Name() string

	AggregateID() []byte
	AggregateType() string
}

type EventProducer

type EventProducer struct {
	// contains filtered or unexported fields
}

func (*EventProducer) PopEvents

func (e *EventProducer) PopEvents() []Event

func (*EventProducer) RecordThat

func (e *EventProducer) RecordThat(event Event)

type VersionedEvent

type VersionedEvent interface {
	Event

	AggregateVersion() int
}

Jump to

Keyboard shortcuts

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