Documentation
¶
Index ¶
- type ApplicationController
- type BookController
- func (c *BookController) Create(ctx echo.Context) (err error)
- func (c *BookController) Delete(ctx echo.Context) error
- func (c *BookController) Get(ctx echo.Context) error
- func (c *BookController) List(ctx echo.Context) error
- func (c *BookController) Route(e *echo.Echo)
- func (c *BookController) Update(ctx echo.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationController ¶
ApplicationController to handle API related with application itself
func (*ApplicationController) Health ¶
func (c *ApplicationController) Health(ctx echo.Context) error
Health end point for health check
func (*ApplicationController) Route ¶ added in v0.6.0
func (c *ApplicationController) Route(e *echo.Echo)
Route to define API Route
type BookController ¶
type BookController struct {
dig.In
repository.BookRepository
}
BookController is controller to book entity
func (*BookController) Create ¶ added in v0.3.0
func (c *BookController) Create(ctx echo.Context) (err error)
Create book
func (*BookController) Delete ¶ added in v0.3.0
func (c *BookController) Delete(ctx echo.Context) error
Delete book
func (*BookController) Get ¶ added in v0.3.0
func (c *BookController) Get(ctx echo.Context) error
Get book
func (*BookController) List ¶ added in v0.3.0
func (c *BookController) List(ctx echo.Context) error
List of book
func (*BookController) Route ¶ added in v0.6.0
func (c *BookController) Route(e *echo.Echo)
Route to define API Route
Click to show internal directories.
Click to hide internal directories.