todo

package
v0.0.0-...-ff29a90 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 2 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 {
}

func NewHandler

func NewHandler() Handler

func (Handler) DeleteTodo

func (h Handler) DeleteTodo(c *fiber.Ctx)

func (Handler) GetById

func (h Handler) GetById(c *fiber.Ctx)

func (Handler) PatchTodo

func (h Handler) PatchTodo(c *fiber.Ctx)

func (Handler) PostTodo

func (h Handler) PostTodo(c *fiber.Ctx)

func (Handler) PutTodo

func (h Handler) PutTodo(c *fiber.Ctx)

type Router

type Router struct {
	Handle Handler
}

func NewRouter

func NewRouter(handle Handler) Router

func (Router) Register

func (r Router) Register(app *fiber.App)

type Todo

type Todo struct {
	ID   int    `json:"id,omitempty"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳