report

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright © 2025 Eden Phillips

Copyright © 2025 Eden Phillips

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintReport

func PrintReport(sessions []Session, days int)

Types

type DayStats

type DayStats struct {
	Date     time.Time
	Sessions int
	Duration time.Duration
}

type Session

type Session struct {
	Date         time.Time
	Duration     time.Duration
	FocusQuality int
	Milestone    string
}

func ParseSessions

func ParseSessions(dbPath string, days int) ([]Session, error)

ParseSessions opens the database at dbPath and returns all sessions recorded within the last `days` days (inclusive of today).

Jump to

Keyboard shortcuts

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