product

package
v0.0.0-...-c9c53c8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func (*Controller) Create

func (c *Controller) Create(entity *product.Product) (uuid.UUID, error)

func (*Controller) ListAll

func (c *Controller) ListAll() (entities []product.Product, err error)

func (*Controller) ListOne

func (c *Controller) ListOne(id uuid.UUID) (entity product.Product, err error)

func (*Controller) Remove

func (c *Controller) Remove(id uuid.UUID) error

func (*Controller) Update

func (c *Controller) Update(id uuid.UUID, entity *product.Product) error

type Interface

type Interface interface {
	ListOne(ID uuid.UUID) (entity product.Product, err error)
	ListAll() (entities []product.Product, err error)
	Create(entity *product.Product) (uuid.UUID, error)
	Update(id uuid.UUID, entity *product.Product) error
	Remove(id uuid.UUID) error
}

func NewController

func NewController(repository adapter.Interface) Interface

Jump to

Keyboard shortcuts

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