database

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertProduct

func InsertProduct(p *Product) octobe.Handler

InsertProduct will take a pointer of a product, and insert it

func ProductByID

func ProductByID(id string, p *Product) octobe.Handler

ProductByID will take an id, and a pointer to scan into

func Products

func Products(result *[]Product) octobe.Handler

Products will take a pointer to append Products into

func UpdateProduct

func UpdateProduct(p *Product) octobe.Handler

UpdateProduct will take a pointer and update the fields

Types

type Product

type Product struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Product is an example database model

Jump to

Keyboard shortcuts

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