Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inventory ¶
type Inventory interface { Startup() Shutdown() ResolveByProductIDs(ids []uuid.UUID) (inventories []model.Inventory, err error) TxUpdate(tx *sqlx.Tx, inventory model.Inventory) (err error) }
Inventory is the Inventory repository interface
type InventoryMySQLRepo ¶
InventoryMySQLRepo is the repository for Inventory implemented with MySQL backend
func (*InventoryMySQLRepo) ResolveByProductIDs ¶
func (r *InventoryMySQLRepo) ResolveByProductIDs(ids []uuid.UUID) (inventories []model.Inventory, err error)
ResolveByProductIDs resolves Inventories by their Product IDs
func (*InventoryMySQLRepo) Shutdown ¶
func (r *InventoryMySQLRepo) Shutdown()
Shutdown cleans up everything and shuts down
func (*InventoryMySQLRepo) Startup ¶
func (r *InventoryMySQLRepo) Startup()
Startup performs startup functions
type Order ¶
type Order interface { Startup() Shutdown() ResolveByID(id uuid.UUID) (order *model.Order, err error) TxUpdate(tx *sqlx.Tx, order model.Order) (err error) }
Order is the Order repository interface
type OrderMySQLRepo ¶
OrderMySQLRepo is the repository for Orders implemented with MySQL backend
func (*OrderMySQLRepo) ResolveByID ¶
ResolveByID resolves an Order by its ID, including its items
func (*OrderMySQLRepo) Shutdown ¶
func (r *OrderMySQLRepo) Shutdown()
Shutdown cleans up everything and shuts down
func (*OrderMySQLRepo) Startup ¶
func (r *OrderMySQLRepo) Startup()
Startup performs startup functions
Click to show internal directories.
Click to hide internal directories.