Documentation
¶
Overview ¶
Package services contains Store
Index ¶
- Variables
- type CSVCodec
- type Persister
- type Status
- type Store
- type Storer
- type Task
- type TaskService
- func (ts *TaskService) AddManual(startTime, endTime time.Time) error
- func (ts *TaskService) Complete() error
- func (ts *TaskService) Create() (*Task, error)
- func (ts *TaskService) GetCurrentTask() (*Task, error)
- func (ts *TaskService) ResetData() error
- func (ts *TaskService) TotalDuration() time.Duration
- type Tasks
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongStatus = errors.New("wrong status")
Functions ¶
This section is empty.
Types ¶
type CSVCodec ¶
type Task ¶
func (*Task) HasStarted ¶
func (*Task) IsSameTask ¶
func (*Task) IsTodaysTask ¶ added in v1.1.0
type TaskService ¶
func NewTaskService ¶
func NewTaskService(s Storer, l logger.Logger) (*TaskService, error)
func (*TaskService) AddManual ¶
func (ts *TaskService) AddManual(startTime, endTime time.Time) error
func (*TaskService) Complete ¶
func (ts *TaskService) Complete() error
func (*TaskService) Create ¶
func (ts *TaskService) Create() (*Task, error)
func (*TaskService) GetCurrentTask ¶
func (ts *TaskService) GetCurrentTask() (*Task, error)
func (*TaskService) ResetData ¶
func (ts *TaskService) ResetData() error
func (*TaskService) TotalDuration ¶
func (ts *TaskService) TotalDuration() time.Duration
type Tasks ¶
func (*Tasks) AllowNewTask ¶
func (*Tasks) GetCurrentTask ¶
func (*Tasks) TotalDuration ¶
Click to show internal directories.
Click to hide internal directories.