controller

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtMiddleware

func JwtMiddleware(next http.Handler) http.Handler

Types

type AuthController

type AuthController struct {
	Database *gorm.DB
}

func (AuthController) Login

func (AuthController) RefreshToken

func (c AuthController) RefreshToken(w http.ResponseWriter, r *http.Request)

func (AuthController) Register

func (c AuthController) Register(w http.ResponseWriter, r *http.Request)

type TaskController

type TaskController struct {
	Database *gorm.DB
}

func (TaskController) CompleteTask

func (c TaskController) CompleteTask(w http.ResponseWriter, r *http.Request)

func (TaskController) CreateTask

func (c TaskController) CreateTask(w http.ResponseWriter, r *http.Request)

func (TaskController) DeleteTask

func (c TaskController) DeleteTask(w http.ResponseWriter, r *http.Request)

func (TaskController) DeleteTaskHistory

func (c TaskController) DeleteTaskHistory(w http.ResponseWriter, r *http.Request)

func (TaskController) EditTask

func (c TaskController) EditTask(w http.ResponseWriter, r *http.Request)

func (TaskController) EditTaskHistory

func (c TaskController) EditTaskHistory(w http.ResponseWriter, r *http.Request)

func (TaskController) GetTask

func (c TaskController) GetTask(w http.ResponseWriter, r *http.Request)

func (TaskController) GetTasks

func (c TaskController) GetTasks(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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