rest

package
v0.0.0-...-ae6e605 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTodo

func AddTodo(s todoAdder) func(w http.ResponseWriter, r *http.Request)

AddTodo adds a todo for the current user

func AddUser

func AddUser(s userAdder) func(w http.ResponseWriter, r *http.Request)

AddUser adds a user

func DeleteTodo

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

DeleteTodo deletes todo with the given id

func GetPriorities

func GetPriorities(s priorityGetter) func(
	w http.ResponseWriter,
	r *http.Request,
)

GetPriorities returns all possible priorities.

func GetTodos

func GetTodos(s todoGetter) func(w http.ResponseWriter, r *http.Request)

GetTodos returns all todos belonging to the current user

func Login

func Login(s tokenGetter) func(w http.ResponseWriter, r *http.Request)

Login returns an auth token for a valid login

func PatchTodo

func PatchTodo(s todoPatcher) func(
	w http.ResponseWriter,
	r *http.Request,
)

PatchTodo updates the given optional fields of patchTodoBody

Types

This section is empty.

Jump to

Keyboard shortcuts

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