task

package
v0.0.0-...-d131206 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTaskEndpoints

func RegisterTaskEndpoints(mux *chi.Mux, db *sql.DB)

Types

type Task

type Task struct {
	Title  string
	Date   time.Time
	Value  string
	Type   Type
	Id     int
	ListId int
	UserId int
}

type TaskRepository

type TaskRepository struct {
	// contains filtered or unexported fields
}

func NewTaskRepo

func NewTaskRepo(db *sql.DB) TaskRepository

func (TaskRepository) CreateTask

func (tr TaskRepository) CreateTask(task Task) (int, error)

func (TaskRepository) DeleteTask

func (tr TaskRepository) DeleteTask(id, listId, userId int) (bool, error)

func (TaskRepository) GetAllTasks

func (tr TaskRepository) GetAllTasks(userId, listId int) ([]Task, error)

func (TaskRepository) GetTask

func (tr TaskRepository) GetTask(taskId, listId, userId int) (Task, error)

type TimeTask

type TimeTask struct{}

type Type

type Type int
const (
	WeightSetsAndReps Type = iota
	TimePaceAndDistance
)

type WeightTask

type WeightTask struct{}

Directories

Path Synopsis
templ: version: v0.2.696
templ: version: v0.2.696

Jump to

Keyboard shortcuts

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