Documentation
¶
Overview ¶
Package services contains Store
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongStatus = errors.New("wrong status")
Functions ¶
This section is empty.
Types ¶
type CSVCodec ¶
type CSVCodec struct {
// contains filtered or unexported fields
}
type TaskService ¶
func NewTaskService ¶
func NewTaskService(s Storer, l logger.Logger) (*TaskService, error)
func (*TaskService) AddManual ¶
func (ts *TaskService) AddManual(st, d string) error
AddManual Data came as; StarTime 11:00:00 Duration 1h20m30s
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() string
type Tasks ¶
type Tasks struct {
// contains filtered or unexported fields
}
func (*Tasks) AllowNewTask ¶
func (*Tasks) GetCurrentTask ¶
func (*Tasks) TotalDuration ¶
func (*Tasks) UpdateTask ¶
Click to show internal directories.
Click to hide internal directories.