event

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 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 AccountOpened

type AccountOpened struct {
	ID     domain.Identifier
	Number string
}

AccountOpened is an event which happens when an account is opened.

func (AccountOpened) EventType

func (e AccountOpened) EventType() string

EventType implements domain.Event interface.

type MoneyDeposited

type MoneyDeposited struct {
	ID      domain.Identifier
	Amount  int64
	Balance int64
}

MoneyDeposited is an event which happens when an account is credited.

func (MoneyDeposited) EventType

func (e MoneyDeposited) EventType() string

EventType implements domain.Event interface.

type MoneyWithdrawn

type MoneyWithdrawn struct {
	ID      domain.Identifier
	Amount  int64
	Balance int64
}

MoneyWithdrawn is an event which happens when an account is debited.

func (MoneyWithdrawn) EventType

func (e MoneyWithdrawn) EventType() string

EventType implements domain.Event interface.

Jump to

Keyboard shortcuts

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