todo

package
v0.0.0-...-1cea508 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(logger zerolog.Logger, render *render.Render, store todo.Store) Handler

Creates TodoItem handler

func (*Handler) Delete

func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)

Handle HTTP Delete for TodoItem

func (*Handler) Get

func (h *Handler) Get(w http.ResponseWriter, r *http.Request)

Handle HTTP Get for TodoItem

func (*Handler) Post

func (h *Handler) Post(w http.ResponseWriter, r *http.Request)

Handle HTTP Post for TodoItem

Jump to

Keyboard shortcuts

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