controllers

package
v0.0.0-...-608c071 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectControllers

func ConnectControllers(d *gorm.DB)

func CreateProduct

func CreateProduct(c *gin.Context)

[POST] create

func CreateUser

func CreateUser(c *gin.Context)

[POST] create

func DeleteProduct

func DeleteProduct(c *gin.Context)

[DELETE] delete

func DeleteUser

func DeleteUser(c *gin.Context)

[DELETE] delete

func GetProduct

func GetProduct(c *gin.Context)

[GET] one

func GetProducts

func GetProducts(c *gin.Context)

[GET] all

func GetUser

func GetUser(c *gin.Context)

[GET] one

func GetUsers

func GetUsers(c *gin.Context)

[GET] all

func UpdateProduct

func UpdateProduct(c *gin.Context)

[PUT] update

func UpdateUser

func UpdateUser(c *gin.Context)

[PUT] update

Types

This section is empty.

Jump to

Keyboard shortcuts

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