api

package
v0.0.0-...-257ae22 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProduct

func CreateProduct(db domain.ProductStore) gin.HandlerFunc

CreateProduct creates a product object inside the db

func CreateTrans

func CreateTrans(db domain.TransStore) gin.HandlerFunc

func DeleteProduct

func DeleteProduct(db domain.ProductStore) gin.HandlerFunc

DeleteProduct creates a product from the db

func NewAPI

func NewAPI(db *store.DB) *gin.Engine

NewAPI starts the router

func NotImplemented

func NotImplemented(c *gin.Context)

NotImplemented is a test dummy for handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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