Documentation
¶
Index ¶
- type Controller
- func (c *Controller) Create(entity *product.Product) (uuid.UUID, error)
- func (c *Controller) ListAll() (entities []product.Product, err error)
- func (c *Controller) ListOne(id uuid.UUID) (entity product.Product, err error)
- func (c *Controller) Remove(id uuid.UUID) error
- func (c *Controller) Update(id uuid.UUID, entity *product.Product) error
- type Interface
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
}
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 ¶
Click to show internal directories.
Click to hide internal directories.