database

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkDAL

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

func NewWorkDAL

func NewWorkDAL(databasePath string) (*WorkDAL, error)

func (*WorkDAL) CreateTask

func (dal *WorkDAL) CreateTask(task types.Task) error

func (*WorkDAL) EndTask

func (dal *WorkDAL) EndTask(id int) error

func (*WorkDAL) GetLatestTask

func (dal *WorkDAL) GetLatestTask() (types.Task, error)

func (*WorkDAL) ListTasks

func (dal *WorkDAL) ListTasks(limit int, days int) ([]types.Task, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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