task

package
v0.0.0-...-ce79110 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 9 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 New

func New(service taskService) Handler

func (Handler) CreateTask

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

func (Handler) DeleteTask

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

func (Handler) GetTaskByID

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

func (Handler) ListTasks

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

func (Handler) UpdateTask

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

type ListTaskResponse

type ListTaskResponse struct {
	Tasks postgresutils.Page[task.Task] `json:"tasks"`
}

Jump to

Keyboard shortcuts

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