Back to godoc.org

Package controller

v0.9.3
Latest Go to latest

The highest tagged major version is .

Published: Sep 28, 2020 | License: MIT | Module: github.com/typical-go/typical-rest-server

Index

type BookCntrl

type BookCntrl struct {
	dig.In
	service.BookSvc
}

BookCntrl is controller to book entity

func (*BookCntrl) Create

func (c *BookCntrl) Create(ec echo.Context) (err error)

Create book

func (*BookCntrl) Delete

func (c *BookCntrl) Delete(ec echo.Context) (err error)

Delete book

func (*BookCntrl) Find

func (c *BookCntrl) Find(ec echo.Context) (err error)

Find books

func (*BookCntrl) FindOne

func (c *BookCntrl) FindOne(ec echo.Context) error

FindOne book

func (*BookCntrl) Patch

func (c *BookCntrl) Patch(ec echo.Context) (err error)

Patch book

func (*BookCntrl) SetRoute

func (c *BookCntrl) SetRoute(e typrest.Server)

SetRoute to define API Route

func (*BookCntrl) Update

func (c *BookCntrl) Update(ec echo.Context) (err error)

Update book

Package Files

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

Jump to identifier

Keyboard shortcuts

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