service

package
v0.0.0-...-86c91f4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStock

func GetStock(productID int) (*m.Stock, *m.StockError)

GetStock gets the stock of a product

func GetStockList

func GetStockList(productIDs []int) m.StockList

GetStockList gets the stock of a list of products

func UpsertStock

func UpsertStock(productID int, stock *m.Stock) (*m.Stock, *m.StockError)

UpsertStock upserts the stock of a product

func UpsertStockList

func UpsertStockList(stockList []m.Stock) m.StockList

UpsertStockList upserts the stock of a list of products

Types

This section is empty.

Jump to

Keyboard shortcuts

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