Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Todo ¶
type Todo interface { HandleGet(w http.ResponseWriter, r *http.Request) HandleDelete(w http.ResponseWriter, r *http.Request) HandlePost(w http.ResponseWriter, r *http.Request) }
Todo todo
type TodoHandler ¶
type TodoHandler struct {
// contains filtered or unexported fields
}
TodoHandler todo
func NewTodoHandler ¶
func NewTodoHandler(render *render.Render, store store.Todo) *TodoHandler
NewTodoHandler todo
func (*TodoHandler) HandleDelete ¶
func (t *TodoHandler) HandleDelete(w http.ResponseWriter, r *http.Request)
HandleDelete todo
func (*TodoHandler) HandleGet ¶
func (t *TodoHandler) HandleGet(w http.ResponseWriter, r *http.Request)
HandleGet todo
func (*TodoHandler) HandlePost ¶
func (t *TodoHandler) HandlePost(w http.ResponseWriter, r *http.Request)
HandlePost todo
Click to show internal directories.
Click to hide internal directories.