account

package
v0.0.0-...-02a5af8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAccountNotFound    = Error("account not found")
	ErrEmailAlreadyExists = Error("email already exists")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAggregate

type AccountAggregate struct {
	pigeon.AggregateMixin

	Email    string
	Password string
}

func (*AccountAggregate) ApplyChange

func (a *AccountAggregate) ApplyChange(event pigeon.Event) error

func (*AccountAggregate) Handle

func (a *AccountAggregate) Handle(ctx context.Context, command pigeon.Command) error

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Directories

Path Synopsis
cmd
ent

Jump to

Keyboard shortcuts

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