package
0.0.0-20220812153048-b499181d84ee
Repository: https://github.com/anhbkpro/go-microservices-product-api.git
Documentation: pkg.go.dev

# Functions

AddProduct adds a new product to the database.
DeleteProduct deletes a product from the database.
No description provided by the author
GetProductByID returns a single product which matches the id from the database.
GetProducts returns all products from the database.
No description provided by the author
No description provided by the author
UpdateProduct replaces a product in the database with the given item.

# Variables

ErrProductNotFound is an error raised when a product can not be found in the database.

# Structs

Product defines the structure for an API product swagger:model.
No description provided by the author
No description provided by the author

# Type aliases

Products defines a slice of Product.
No description provided by the author