Documentation
¶
Overview ¶
Package model contains our API models
Index ¶
- type Product
- func (p *Product) AddTestData(db *sql.DB, count int) error
- func (p *Product) ClearTable(db *sql.DB) error
- func (p *Product) Delete(db *sql.DB) error
- func (p *Product) EnsureTableExists(db *sql.DB) error
- func (p *Product) Get(db *sql.DB) error
- func (p *Product) Post(db *sql.DB) error
- func (p *Product) Put(db *sql.DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product ¶
Product represents products
func (*Product) AddTestData ¶
AddTestData is used to add one or more records into the table for testing.
func (*Product) ClearTable ¶
ClearTable to clean the table up.
func (*Product) EnsureTableExists ¶
EnsureTableExists makes sure that the table we need for testing is available.
Click to show internal directories.
Click to hide internal directories.