package
0.0.0-20240703020843-eee30f5054af
Repository: https://github.com/henvic/pgxtutorial.git
Documentation: pkg.go.dev
# Functions
NewService creates an API service.
# Variables
ErrCreateReviewNoProduct is returned when a product review cannot be created because a product is not found.
# Structs
CreateProductParams used by CreateProduct.
CreateProductReviewParams is used when creating the review of a product in the database.
CreateProductReviewParams is used when creating the review of a product.
Pagination is used to paginate results.
Product on the catalog.
ProductReview of a product.
ProductReviewsParams is used to get a list of reviews.
ProductReviewsResponse is the response from GetProductReviews.
SearchProductsParams used by SearchProducts.
SearchProductsResponse from SearchProducts.
Service for the API.
UpdateProductParams used by UpdateProduct.
UpdateProductReviewParams to use when updating an existing review.
ValidationError is returned when there is an invalid parameter received.
# Interfaces
DB layer.