database

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 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() (*WorkDAL, error)

func (*WorkDAL) CreateShift

func (dal *WorkDAL) CreateShift(shift models.Shift) error

func (*WorkDAL) CreateTask

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

func (*WorkDAL) EndShift

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

func (*WorkDAL) EndTask

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

func (*WorkDAL) GetLatestShift

func (dal *WorkDAL) GetLatestShift() (models.Shift, error)

func (*WorkDAL) GetLatestTask

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

func (*WorkDAL) ListShifts

func (dal *WorkDAL) ListShifts(limit int) ([]models.Shift, error)

func (*WorkDAL) ListTasks

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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