todo

package
v0.0.0-...-fdd54d7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTodo

func CreateTodo(w http.ResponseWriter, r *http.Request)

func DeleteTodo

func DeleteTodo(w http.ResponseWriter, r *http.Request)

func GetATodo

func GetATodo(w http.ResponseWriter, r *http.Request)

func GetAllTodos

func GetAllTodos(w http.ResponseWriter, r *http.Request)

Types

type Config

type Config struct {
	*config.Config
}

func New

func New(configuration *config.Config) *Config

func (*Config) Routes

func (config *Config) Routes() *chi.Mux

type Todo

type Todo struct {
	Slug  string `json:"slug"`
	Title string `json:"title"`
	Body  string `json:"body"`
}

Jump to

Keyboard shortcuts

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