controller

package
v0.0.0-...-ac9c1c3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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