Documentation ¶
Index ¶
- type Controller
- func (Controller) About(c echo.Context) error
- func (controller *Controller) CreateUser(c echo.Context) error
- func (controller *Controller) DeleteUser(c echo.Context) error
- func (Controller) Home(c echo.Context) error
- func (controller *Controller) Login(c echo.Context) error
- func (controller *Controller) Logout(c echo.Context) error
- func (controller *Controller) ReadUser(c echo.Context) error
- func (controller *Controller) UpdateUser(c echo.Context) error
- func (controller *Controller) UpdateUserByPassword(c echo.Context) error
- func (controller *Controller) Users(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
Controller is a controller for this application
func (Controller) About ¶
func (Controller) About(c echo.Context) error
* About "about.html" * * @target: All * @method: GET * @route: /about
func (*Controller) CreateUser ¶
func (controller *Controller) CreateUser(c echo.Context) error
* User Add * * @target: Users * @method: GET or POST * @route: /users/add
func (*Controller) DeleteUser ¶
func (controller *Controller) DeleteUser(c echo.Context) error
* Delete User ID * * @target: Users * @method: GET * @route: /users/delete/:id
func (Controller) Home ¶
func (Controller) Home(c echo.Context) error
* Home "home.html" * * @target: All * @method: GET * @route: /
func (*Controller) Login ¶
func (controller *Controller) Login(c echo.Context) error
* Session: Login * * @target: All * @method: GET * @route: /login
func (*Controller) Logout ¶
func (controller *Controller) Logout(c echo.Context) error
* Session: Logout * * @target: Users * @method: GET * @route: /logout
func (*Controller) ReadUser ¶
func (controller *Controller) ReadUser(c echo.Context) error
* Read User ID * * @target: Users * @method: GET * @route: /users/read/:id
func (*Controller) UpdateUser ¶
func (controller *Controller) UpdateUser(c echo.Context) error
* Update User ID * * @target: Users * @method: GET or POST * @route: /users/view/:id
func (*Controller) UpdateUserByPassword ¶
func (controller *Controller) UpdateUserByPassword(c echo.Context) error
* Update User ID by Password * * @target: Users * @method: GET or POST * @route: /users/view/:id/password
func (*Controller) Users ¶
func (controller *Controller) Users(c echo.Context) error
* Users All * * @target: Users * @method: GET * @route: /users