handlers

package
v0.0.0-...-76ad57f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL