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
}
Click to show internal directories.
Click to hide internal directories.