Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func NewDatabase ¶
func (*Database) FindByName ¶
Returns the products in the database that contain the keyword
type Page ¶
type Page struct { Page uint64 `json:"page"` // The current page TotalPages int `json:"totalPages"` // Total number of pages LastPage string `json:"lastPage"` // Url used to navigate to page n-1 NextPage string `json:"nextPage"` // Url used to navigate to page n+1 TotalItems int `json:"totalItems"` // The total amount of products that match the keyword Count int `json:"count"` // The amount of rows returned by this query Products []*Product `json:"products"` // A slice of *Product }
type Result ¶
Click to show internal directories.
Click to hide internal directories.