Documentation ¶ Index ¶ type WorkDAL func NewWorkDAL(databasePath string) (*WorkDAL, error) func (dal *WorkDAL) CreateTask(task types.Task) error func (dal *WorkDAL) EndTask(id int) error func (dal *WorkDAL) GetLatestTask() (types.Task, error) func (dal *WorkDAL) ListTasks(limit int, days int) ([]types.Task, error) 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) Source Files ¶ View all Source files database.go Directories ¶ Show internal Expand all Path Synopsis types Click to show internal directories. Click to hide internal directories.