Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostItemResponse ¶
type PostItemResponse struct {
Success bool `json:"success"`
}
PostItemResponse the response data that will be returned as json after a post save action of all todo items.
type TodoController ¶
TodoController is our TODO app's web controller.
func (*TodoController) BeforeActivation ¶
func (c *TodoController) BeforeActivation(b mvc.BeforeActivation)
BeforeActivation called once before the server ran, and before the routes and dependencies binded. You can bind custom things to the controller, add new methods, add middleware, add dependencies to the struct or the method(s) and more.
func (*TodoController) Get ¶
func (c *TodoController) Get() []todo.Item
Get handles the GET: /todos route.
func (*TodoController) GetSync ¶
func (c *TodoController) GetSync(conn websocket.Connection)
func (*TodoController) Post ¶
func (c *TodoController) Post(newItems []todo.Item) PostItemResponse
Post handles the POST: /todos route.
Click to show internal directories.
Click to hide internal directories.