Documentation
¶
Index ¶
- type AppCntrl
- type BookCntrl
- func (c *BookCntrl) Create(ec echo.Context) (err error)
- func (c *BookCntrl) Delete(ec echo.Context) (err error)
- func (c *BookCntrl) Find(ec echo.Context) (err error)
- func (c *BookCntrl) FindOne(ec echo.Context) (err error)
- func (c *BookCntrl) Route(e *echo.Echo)
- func (c *BookCntrl) Update(ec echo.Context) (err error)
- type GeneralResponse
- type MusicCntrl
- func (c *MusicCntrl) Create(ec echo.Context) (err error)
- func (c *MusicCntrl) Delete(ec echo.Context) (err error)
- func (c *MusicCntrl) Find(ec echo.Context) (err error)
- func (c *MusicCntrl) FindOne(ec echo.Context) (err error)
- func (c *MusicCntrl) Route(e *echo.Echo)
- func (c *MusicCntrl) Update(ec echo.Context) (err error)
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
type BookCntrl ¶ added in v0.8.1
type BookCntrl struct {
dig.In
service.BookService
}
BookCntrl is controller to book entity
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
Click to show internal directories.
Click to hide internal directories.