Documentation ¶
Index ¶
- type Day
- type Intention
- type Store
- func (s *Store) DeleteWhys(whys []Why) error
- func (s *Store) GetDaysIntentions(day time.Time) ([]Intention, error)
- func (s *Store) GetWhys(status WhyStatusEnum) ([]Why, error)
- func (s *Store) UpsertDayReview(days []Day) error
- func (s *Store) UpsertIntentions(items []Intention) error
- func (s *Store) UpsertWhys(items []Why) error
- type Why
- type WhyStatusEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intention ¶
type Intention struct { ID uint Date time.Time Content string Done bool Cancelled bool Outcome bool // True for outcomes added at the end of the day Unintended bool // To keep track of where the intention is on the list relative to others Position int Pomos int Whys []*Why `gorm:"many2many:whys_intentions;"` }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteWhys ¶
func (*Store) GetDaysIntentions ¶
func (*Store) UpsertDayReview ¶
func (*Store) UpsertIntentions ¶
func (*Store) UpsertWhys ¶
Click to show internal directories.
Click to hide internal directories.