Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Router *router = &router{echo.New()}
Functions ¶
This section is empty.
Types ¶
type HomeController ¶
type HomeController struct{}
type ResourceController ¶
type ResourceController interface { // Returns a list of all of these resources List(echo.Context) error // Returns a specific resource (by id). Show(echo.Context) error // Creates a new instance of the resource. Create(echo.Context) error // Updates a resource. Update(echo.Context) error // Deletes a resource. Delete(echo.Context) error }
Controller for a Model
type UserController ¶
type UserController struct { ResourceController // contains filtered or unexported fields }
func (UserController) Create ¶
func (u UserController) Create(c echo.Context) error
func (UserController) List ¶
func (UserController) List(c echo.Context) error
func (UserController) Show ¶
func (u UserController) Show(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.