controller

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCntrl added in v0.8.1

type AppCntrl struct {
	dig.In
	Postgres *typpostgres.DB
}

AppCntrl handle API related with application itself

func (*AppCntrl) Health added in v0.8.1

func (c *AppCntrl) Health(ctx echo.Context) error

Health end point for health check

func (*AppCntrl) Route added in v0.8.1

func (c *AppCntrl) Route(e *echo.Echo)

Route to define API Route

type BookCntrl added in v0.8.1

type BookCntrl struct {
	dig.In
	service.BookService
}

BookCntrl is controller to book entity

func (*BookCntrl) Create added in v0.8.1

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

Create book

func (*BookCntrl) Delete added in v0.8.1

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

Delete book

func (*BookCntrl) Find added in v0.8.16

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

Find books

func (*BookCntrl) FindOne added in v0.8.16

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

FindOne book

func (*BookCntrl) Route added in v0.8.1

func (c *BookCntrl) Route(e *echo.Echo)

Route to define API Route

func (*BookCntrl) Update added in v0.8.1

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

Update book

type GeneralResponse added in v0.8.1

type GeneralResponse struct {
	Message string `json:"message"`
}

GeneralResponse is general response

type MusicCntrl added in v0.8.11

type MusicCntrl struct {
	dig.In
	service.MusicService
}

MusicCntrl is controller to music entity

func (*MusicCntrl) Create added in v0.8.11

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

Create music

func (*MusicCntrl) Delete added in v0.8.11

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

Delete music

func (*MusicCntrl) Find added in v0.8.16

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

Find musics

func (*MusicCntrl) FindOne added in v0.8.16

func (c *MusicCntrl) FindOne(ec echo.Context) (err error)

FindOne music

func (*MusicCntrl) Route added in v0.8.11

func (c *MusicCntrl) Route(e *echo.Echo)

Route to define API Route

func (*MusicCntrl) Update added in v0.8.11

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

Update music

Jump to

Keyboard shortcuts

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