types

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DayStats

type DayStats struct {
	Total            time.Duration
	ByClassification map[TaskClassification]time.Duration
}

DayStats holds statistics for a single day

type Task

type Task struct {
	ID             int                `json:"id"`
	Description    string             `json:"description"`
	Classification TaskClassification `json:"classification"`
	Start          time.Time          `json:"start"`
	End            time.Time          `json:"end"`
}

type TaskClassification

type TaskClassification int
const (
	Break TaskClassification = iota
	Chore
	Toil
	Work
)

func (TaskClassification) String

func (tc TaskClassification) String() string

Jump to

Keyboard shortcuts

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