Back to godoc.org

Package controller

v0.0.0-...-ac9c1c3
Latest Go to latest

The highest tagged major version is .

Published: Apr 29, 2020 | License: MIT | Module: github.com/HETIC-MT-P2021/aio-group2-proj01/back

Index

Variables

var (
	EmptyValue = make([]int, 0)
)

func AddCategory

func AddCategory(c echo.Context) error

AddCategory creates a new category from JSON request.

func AddImage

func AddImage(c echo.Context) (err error)

AddImage creates a new image from JSON request.

func AddTag

func AddTag(c echo.Context) error

AddTag creates a new tag from JSON request.

func EditCategory

func EditCategory(c echo.Context) error

EditCategory updates a category from JSON request.

func EditImage

func EditImage(c echo.Context) error

EditImage updates a image from JSON request.

func EditTag

func EditTag(c echo.Context) error

EditTag updates a tag from JSON request.

func GetAllCategory

func GetAllCategory(c echo.Context) error

GetAllCategory returns a JSON list of categories.

func GetAllImage

func GetAllImage(c echo.Context) error

GetAllImage returns a JSON list of images.

func GetAllTag

func GetAllTag(c echo.Context) error

GetAllTag returns a JSON list of tags.

func GetCategory

func GetCategory(c echo.Context) error

GetCategory returns a JSON object for one category.

func GetImage

func GetImage(c echo.Context) error

GetImage returns a JSON object for one image.

func GetTag

func GetTag(c echo.Context) error

GetTag returns a JSON object for one tag.

func RemoveCategory

func RemoveCategory(c echo.Context) error

RemoveCategory Delete category from JSON request.

func RemoveImage

func RemoveImage(c echo.Context) error

RemoveImage Delete image from JSON request.

func RemoveTag

func RemoveTag(c echo.Context) error

RemoveTag Delete tag from JSON request.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier