event

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountOpened

type AccountOpened struct {
	DomainEvent

	Number  string
	Balance money.Money
}

func NewAccountOpened added in v0.8.0

func NewAccountOpened(aggID uuid.UUID, number string, balance money.Money) AccountOpened

type DomainEvent added in v0.8.0

type DomainEvent struct {
	ID    uuid.UUID
	AggID uuid.UUID
}

func NewDomainEvent added in v0.8.0

func NewDomainEvent(aggID uuid.UUID) DomainEvent

func (DomainEvent) AggregateID added in v0.8.0

func (e DomainEvent) AggregateID() uuid.UUID

func (DomainEvent) EventID added in v0.8.0

func (e DomainEvent) EventID() uuid.UUID

type MoneyDeposited

type MoneyDeposited struct {
	DomainEvent

	Amount  money.Money
	Balance money.Money
}

func NewMoneyDeposited added in v0.8.0

func NewMoneyDeposited(aggID uuid.UUID, amount, balance money.Money) MoneyDeposited

type MoneyReceived

type MoneyReceived struct {
	DomainEvent

	From    string
	To      string
	Amount  money.Money
	Balance money.Money
}

func NewMoneyReceived added in v0.8.0

func NewMoneyReceived(aggID uuid.UUID, from, to string, amount, balance money.Money) MoneyReceived

type MoneyTransferred

type MoneyTransferred struct {
	DomainEvent

	From    string
	To      string
	Amount  money.Money
	Balance money.Money
}

func NewMoneyTransferred added in v0.8.0

func NewMoneyTransferred(aggID uuid.UUID, from, to string, amount, balance money.Money) MoneyTransferred

Jump to

Keyboard shortcuts

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