Documentation ¶
Index ¶
- type BLDB
- func (b *BLDB) AddThing(name string, counter bool) (int64, error)
- func (b *BLDB) ClickThing(id int64, when Date, amount int64) (int64, error)
- func (b *BLDB) History(when Date, daysBack int) (ThingsHistory, error)
- func (b *BLDB) Migrate() error
- func (b *BLDB) RemoveThing(id int64) error
- func (b *BLDB) ResetThing(id int64, when Date) error
- type Date
- type ThingHistory
- type ThingsHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BLDB ¶
type BLDB struct {
// contains filtered or unexported fields
}
func (*BLDB) ClickThing ¶
ClickThing increases a thing today if it is a counter, or toggles it if it is not a counter
func (*BLDB) RemoveThing ¶
RemoveThing removes a thing and frees up it's id
type ThingsHistory ¶
type ThingsHistory struct { FromWhen Date DaysBack int Things []ThingHistory }
Click to show internal directories.
Click to hide internal directories.