Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActiveRecordExistsError = errors.New("active record already exists") NoActiveRecordError = errors.New("no active record exists") )
Functions ¶
This section is empty.
Types ¶
type BusinessDay ¶
type TimeTrackingDb ¶
type TimeTrackingDb struct {
// contains filtered or unexported fields
}
func CreateDb ¶
func CreateDb(filename string) (*TimeTrackingDb, error)
func LoadDb ¶
func LoadDb(filename string) (*TimeTrackingDb, error)
func (*TimeTrackingDb) Close ¶
func (t *TimeTrackingDb) Close() error
func (*TimeTrackingDb) GetBusinessDays ¶
func (t *TimeTrackingDb) GetBusinessDays(from, to time.Time) ([]BusinessDay, error)
func (*TimeTrackingDb) GetCurrentRecord ¶
func (t *TimeTrackingDb) GetCurrentRecord() (Record, error)
func (*TimeTrackingDb) StartRecord ¶
func (t *TimeTrackingDb) StartRecord(dts time.Time) error
Click to show internal directories.
Click to hide internal directories.