Documentation ¶
Index ¶
- func New(config *model.DBConfig) (model.DB, error)
- type DB
- func (db DB) GetAccessories() ([]model.Product, error)
- func (db DB) GetAccessoryWithId(id string) (model.Product, error)
- func (db DB) GetCarWithId(id string) (model.Product, error)
- func (db DB) GetCars() ([]model.Product, error)
- func (db DB) GetProducts() ([]model.Product, error)
- func (db DB) GetRecentItems() ([]model.Product, error)
- func (db DB) SetSelectedItem(product model.Product) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.