command

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCategory

type CreateCategory struct {
	ID   string
	Name string
}

type CreateCategoryHandler

type CreateCategoryHandler interface {
	Handle(ctx context.Context, cmd CreateCategory) error
}

type CreateCategoryHandlerImpl

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

func NewCreateCategoryHandlerImpl

func NewCreateCategoryHandlerImpl(repository category.Repository) *CreateCategoryHandlerImpl

func (CreateCategoryHandlerImpl) Handle

type CreateProduct

type CreateProduct struct {
	ID          string
	Name        string
	CategoryRef string
	Variants    []ProductVariantDTO
}

type CreateProductHandler

type CreateProductHandler interface {
	Handle(ctx context.Context, cmd CreateProduct) error
}

type CreateProductHandlerImpl

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

func NewCreateProductHandlerImpl

func NewCreateProductHandlerImpl(repo product.Repository) *CreateProductHandlerImpl

func (CreateProductHandlerImpl) Handle

type ProductVariantDTO

type ProductVariantDTO struct {
	ID    string
	Code  string
	Name  string
	Price float64
}

Directories

Path Synopsis
mock
mockcategory
Package mockcategory is a generated GoMock package.
Package mockcategory is a generated GoMock package.
mockproduct
Package mockproduct is a generated GoMock package.
Package mockproduct is a generated GoMock package.

Jump to

Keyboard shortcuts

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