Documentation ¶
Index ¶
- func Close()
- func DeleteLatest()
- func ExternalDeleteID(id int)
- func GetDbPath() string
- func GetLocalGomodorosByYear(year int) []string
- func GetTotalsRecord()
- func GetValidYears() []int
- func Init()
- func InsertRecord(date string, startTimestamp string, endTimestamp string, minutes int, ...)
- func ListGomodoros(days int)
- func LoadConfig()
- func Sync()
- func ValidateSync()
- type Gomodoro
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteLatest ¶
func DeleteLatest()
func ExternalDeleteID ¶
func ExternalDeleteID(id int)
func GetLocalGomodorosByYear ¶
func GetTotalsRecord ¶
func GetTotalsRecord()
func GetValidYears ¶
func GetValidYears() []int
func Init ¶
func Init()
Init has 2 purposes:
- loads the config.yaml file
// 2. opens the SQLite database and creates the main table if if it do not exist
func InsertRecord ¶
func ListGomodoros ¶
func ListGomodoros(days int)
func LoadConfig ¶
func LoadConfig()
func ValidateSync ¶
func ValidateSync()
Types ¶
Click to show internal directories.
Click to hide internal directories.