adapterent

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryReadModelProjectEnt added in v1.5.0

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

func NewCategoryReadModelProjectEnt added in v1.5.0

func NewCategoryReadModelProjectEnt(client *ent.Client) *CategoryReadModelProjectEnt

func (CategoryReadModelProjectEnt) LoadById added in v1.5.0

type CategoryRepositoryEnt

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

func NewCategoryRepositoryEnt

func NewCategoryRepositoryEnt(client *ent.Client) *CategoryRepositoryEnt

func (CategoryRepositoryEnt) Create

func (CategoryRepositoryEnt) Load

func (c CategoryRepositoryEnt) Load(ctx context.Context, id string) (entity *category.Category, err error)

func (CategoryRepositoryEnt) Update

func (c CategoryRepositoryEnt) Update(ctx context.Context, id string, entity *category.Category) error

type ProductRepository

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

func NewProductRepository

func NewProductRepository(client *ent.Client) *ProductRepository

func (ProductRepository) Create

func (p ProductRepository) Create(ctx context.Context, entity *product.Product) (err error)

func (ProductRepository) Load

func (p ProductRepository) Load(ctx context.Context, id string) (entity *product.Product, err error)

func (ProductRepository) LoadById

func (p ProductRepository) LoadById(ctx context.Context, id string) (query.Product, error)

func (ProductRepository) Update

func (p ProductRepository) Update(ctx context.Context, id string, entity *product.Product) error

type ProductsReadModelQueryProjector added in v1.6.0

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

func NewProductsReadModelQueryProjector added in v1.6.0

func NewProductsReadModelQueryProjector(client *ent.Client) *ProductsReadModelQueryProjector

func (ProductsReadModelQueryProjector) GetAllProducts added in v1.6.0

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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