persistence

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package persistence must be ..

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

type BoltDB struct {
	DB *bolt.DB
}

func NewBoltDB

func NewBoltDB(path string) (*BoltDB, error)

type BoltWorkSessionRepository

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

func NewBoltWorkSessionRepository

func NewBoltWorkSessionRepository(db *bbolt.DB) *BoltWorkSessionRepository

func (*BoltWorkSessionRepository) GetByID

func (*BoltWorkSessionRepository) GetLastSession

func (r *BoltWorkSessionRepository) GetLastSession() (*domain.WorkSession, error)

func (*BoltWorkSessionRepository) GetSessionsByDateRange

func (r *BoltWorkSessionRepository) GetSessionsByDateRange(start, end time.Time) ([]*domain.WorkSession, error)

func (*BoltWorkSessionRepository) Save

Jump to

Keyboard shortcuts

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