repository

package
v0.0.0-...-03a9009 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDatabasePath string = "./db.sqlite"

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(filepath string) (*Repo, error)

func (*Repo) CreateWorkDay

func (r *Repo) CreateWorkDay(workDay model.WorkDay) (model.WorkDay, error)

func (*Repo) CreateWorkPeriod

func (r *Repo) CreateWorkPeriod(period model.WorkPeriod) (model.WorkPeriod, error)

func (*Repo) GetOpenWorkPeriod

func (r *Repo) GetOpenWorkPeriod(workDay model.WorkDay) (model.WorkPeriod, error)

func (*Repo) GetWorkDayByDate

func (r *Repo) GetWorkDayByDate(date time.Time) (model.WorkDay, error)

func (*Repo) GetWorkDayCount

func (r *Repo) GetWorkDayCount() (int, error)

func (*Repo) GetWorkPeriods

func (r *Repo) GetWorkPeriods(workDay model.WorkDay) ([]model.WorkPeriod, error)

func (*Repo) UpdateWorkPeriod

func (r *Repo) UpdateWorkPeriod(workPeriod model.WorkPeriod) (model.WorkPeriod, error)

Jump to

Keyboard shortcuts

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