rest

package
v0.0.0-...-54ab06f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemHandler

type ItemHandler struct {
	// contains filtered or unexported fields
}

ItemHandler is http handler for item resources

func NewItemHandler

func NewItemHandler(interactor *interactor.Item) *ItemHandler

func (*ItemHandler) Create

func (h *ItemHandler) Create() echo.HandlerFunc

Create creates an item.

func (*ItemHandler) Get

func (h *ItemHandler) Get() echo.HandlerFunc

Get gets an item by specific item_id of url param.

func (*ItemHandler) List

func (h *ItemHandler) List() echo.HandlerFunc

List gets all items.

type JSONErr

type JSONErr struct {
	Error string
}

Jump to

Keyboard shortcuts

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