todo

package
v0.0.0-...-c5175b4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*configs.Config
}

func New

func New(configuration *configs.Config) *Config

func (*Config) CreateTodo

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

func (*Config) DeleteTodo

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

func (*Config) GetATodo

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

func (*Config) GetAllTodos

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

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