storage

package
v0.0.0-...-25bcf4f Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID          uint
	Start       time.Time
	Finish      time.Time
	Duration    time.Duration
	Project     string
	Description string
	Tags        []string `gorm:"serializer:json"`
}

func (*Entry) IsFinished

func (entry *Entry) IsFinished() bool

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(path string) (*Storage, error)

func (*Storage) Create

func (storage *Storage) Create(entry *Entry) error

func (*Storage) Delete

func (storage *Storage) Delete(entry *Entry) error

func (*Storage) Entries

func (storage *Storage) Entries() ([]Entry, error)

func (*Storage) EntryByID

func (storage *Storage) EntryByID(id int) (*Entry, error)

func (*Storage) Update

func (storage *Storage) Update(entry *Entry) error

Jump to

Keyboard shortcuts

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