db

package
v0.0.0-...-3bbbb78 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *model.DBConfig) (model.DB, error)

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func (DB) GetAccessories

func (db DB) GetAccessories() ([]model.Product, error)

func (DB) GetAccessoryWithId

func (db DB) GetAccessoryWithId(id string) (model.Product, error)

func (DB) GetCarWithId

func (db DB) GetCarWithId(id string) (model.Product, error)

func (DB) GetCars

func (db DB) GetCars() ([]model.Product, error)

func (DB) GetProducts

func (db DB) GetProducts() ([]model.Product, error)

func (DB) GetRecentItems

func (db DB) GetRecentItems() ([]model.Product, error)

func (DB) SetSelectedItem

func (db DB) SetSelectedItem(product model.Product) (bool, error)

Jump to

Keyboard shortcuts

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