Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶ added in v0.3.0
type Database interface { InsertProduct(*Product) octobe.Handler UpdateProduct(*Product) octobe.Handler ProductByID(*Product) octobe.Handler Products(*[]Product) octobe.Handler }
Database interface that implements the databases, with this you can mock Database.
type Handler ¶ added in v0.3.0
type Handler struct{}
Handler implements the database interface
func (Handler) InsertProduct ¶ added in v0.3.0
InsertProduct will take a pointer of a product, and insert it
func (Handler) ProductByID ¶ added in v0.3.0
ProductByID will take an id, and a pointer to scan into
Click to show internal directories.
Click to hide internal directories.