Documentation
¶
Index ¶
- Constants
- func GetShiftedTime(ts time.Time, direction TimeShiftDirection, duration TimeShiftDuration) time.Time
- func HumanizeDuration(durationInSecs int) string
- type ActiveTaskDetails
- type ActiveTaskLogEntry
- type Task
- type TaskLogEntry
- type TaskReportEntry
- type TimePeriod
- type TimeShiftDirection
- type TimeShiftDuration
Constants ¶
View Source
const (
TimePeriodWeek = "week"
)
Variables ¶
This section is empty.
Functions ¶
func GetShiftedTime ¶
func GetShiftedTime(ts time.Time, direction TimeShiftDirection, duration TimeShiftDuration) time.Time
func HumanizeDuration ¶
Types ¶
type ActiveTaskDetails ¶
type ActiveTaskLogEntry ¶
type Task ¶
type Task struct {
ID int
Summary string
CreatedAt time.Time
UpdatedAt time.Time
TrackingActive bool
SecsSpent int
Active bool
ListTitle string
ListDesc string
}
func (Task) Description ¶
func (Task) FilterValue ¶
func (*Task) UpdateListDesc ¶
func (t *Task) UpdateListDesc()
func (*Task) UpdateListTitle ¶
func (t *Task) UpdateListTitle()
type TaskLogEntry ¶
type TaskLogEntry struct {
ID int
TaskID int
TaskSummary string
BeginTS time.Time
EndTS time.Time
SecsSpent int
Comment *string
ListTitle string
ListDesc string
}
func (TaskLogEntry) Description ¶
func (tl TaskLogEntry) Description() string
func (TaskLogEntry) FilterValue ¶
func (tl TaskLogEntry) FilterValue() string
func (*TaskLogEntry) GetComment ¶
func (tl *TaskLogEntry) GetComment() string
func (TaskLogEntry) Title ¶
func (tl TaskLogEntry) Title() string
func (*TaskLogEntry) UpdateListDesc ¶
func (tl *TaskLogEntry) UpdateListDesc()
func (*TaskLogEntry) UpdateListTitle ¶
func (tl *TaskLogEntry) UpdateListTitle()
type TaskReportEntry ¶
type TimePeriod ¶
func GetTimePeriod ¶
type TimeShiftDirection ¶
type TimeShiftDirection uint8
const ( ShiftForward TimeShiftDirection = iota ShiftBackward )
type TimeShiftDuration ¶
type TimeShiftDuration uint8
const ( ShiftMinute TimeShiftDuration = iota ShiftFiveMinutes ShiftHour ShiftDay )
Click to show internal directories.
Click to hide internal directories.