Documentation
¶
Index ¶
- func QueryMiddleware(db database.Querier) echo.MiddlewareFunc
- type Controller
- func (ctrl *Controller) Create(c echo.Context) error
- func (ctrl *Controller) Delete(c echo.Context) error
- func (ctrl *Controller) Get(c echo.Context) error
- func (ctrl *Controller) ListByComment(c echo.Context) error
- func (ctrl *Controller) ListByPost(c echo.Context) error
- func (ctrl *Controller) Update(c echo.Context) error
- func (ctrl *Controller) Vote(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryMiddleware ¶
func QueryMiddleware(db database.Querier) echo.MiddlewareFunc
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(db database.Querier) *Controller
func (*Controller) ListByComment ¶
func (ctrl *Controller) ListByComment(c echo.Context) error
func (*Controller) ListByPost ¶
func (ctrl *Controller) ListByPost(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.