spec

package
v0.0.0-...-b018a71 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Product

type Product struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Cost        float32 `json:"cost"`
	Description string  `json:"description"`
	Image       string  `json:"image"`
	OnOffer     bool    `json:"onOffer"`
}

Product holds product data

type ProductService

type ProductService interface {
	SearchProducts(string) ([]Product, error)
	QueryProducts(string, string) ([]Product, error)
	AllProducts() ([]Product, error)
}

ProductService defines core CRUD methods a products service should have

Jump to

Keyboard shortcuts

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