product

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 (
	ErrProductNotFound      = Error("product not found")
	ErrProductQtyBalanceOut = Error("product qty balance out")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type ProductAggregate

type ProductAggregate struct {
	pigeon.AggregateMixin

	Name     string
	ImageURL string
	Price    int64
	Qty      int64
}

func (*ProductAggregate) ApplyChange

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

func (*ProductAggregate) Handle

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

Directories

Path Synopsis
cmd
ent

Jump to

Keyboard shortcuts

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