Versions in this module Expand all Collapse all v1 v1.1.0 Dec 14, 2019 v1.0.0 Nov 11, 2019 Changes in this version + const BumpedStatus + const ColMinWidth + const ColSpacesLen + const DefaultTrimAtLength + const DoneStatus + const HumanPrintFormat + const JSONPrintFormat + const LargestDateLen + const MaxIDLength + const SkippedStatus + const TextPrintFormat + const WaitingStatus + func Add(ctx context.Context, description io.Reader, timeString string) error + func AddDone(ctx context.Context, description io.Reader, timeString string) error + func Base36(in int) rune + func Bump(ctx context.Context, id string, timeString string) error + func CreateGroup(ctx context.Context, name string, filterString string) error + func DateFilterFn(comparison filter.FilterComparison, val string) (filter.Filter, error) + func DefaultParser(store Store) *parser.Parser + func DeleteGroup(ctx context.Context, name string) error + func Do(ctx context.Context, id string) error + func Edit(ctx context.Context, idString string, description io.Reader, timeString string) error + func EditDataFromFile(ctx context.Context, editID string) error + func GenerateID(at time.Time) string + func GroupFilterFn(store Store) parser.ToFilterFn + func IDSuffixForDate(t time.Time) string + func Import(ctx context.Context, filename string) error + func List(ctx context.Context, argString string, groupString string) error + func ListGroup(ctx context.Context) error + func ListTag(ctx context.Context) error + func ReadToStore(ctx context.Context, f io.Reader) error + func Rm(ctx context.Context, idString string) error + func Show(ctx context.Context, idString string) error + func Skip(ctx context.Context, id string) error + func StatusFilterFn(comparison filter.FilterComparison, val string) (filter.Filter, error) + func TagFilterFn(store Store) parser.ToFilterFn + func TrimString(input string, extraCharacterLength int) string + type BoltStore struct + func NewBoltStore(db *storm.DB) *BoltStore + func (s *BoltStore) Close() + func (s *BoltStore) Delete(item *Item) error + func (s *BoltStore) DeleteGroup(group *Group) error + func (s *BoltStore) DropBucket(bucket string) + func (s *BoltStore) Find(id string) (*Item, error) + func (s *BoltStore) FindAll(id string) ([]*Item, error) + func (s *BoltStore) FindGroupByName(name string) (*Group, error) + func (s *BoltStore) FindTag(name string) (*Tag, error) + func (s *BoltStore) ListFilters(filters []filter.Filter) ([]*Item, error) + func (s *BoltStore) ListGroups() ([]*Group, error) + func (s *BoltStore) ListTags() ([]*Tag, error) + func (s *BoltStore) Save(item *Item) error + func (s *BoltStore) SaveGroup(group *Group) error + func (s *BoltStore) SaveTag(tag *Tag) error + func (s *BoltStore) WithContext(ctx context.Context) Store + type DateFilter struct + func NewDateFilter(comparison filter.FilterComparison, timespan *Timespan) *DateFilter + func (dateFilter *DateFilter) Match(i interface{}) (bool, error) + func (dateFilter *DateFilter) String() string + type Group struct + CreatedAt time.Time + FilterString string + Name string + func NewGroup(name string, filterString string) *Group + func (g *Group) Filters(store Store) ([]filter.Filter, error) + func (g *Group) String() string + type GroupFilter struct + func NewGroupFilter(comparison filter.FilterComparison, name string, filters []filter.Filter) *GroupFilter + func (groupFilter *GroupFilter) Match(i interface{}) (bool, error) + func (groupFilter *GroupFilter) String() string + type GroupStore interface + DeleteGroup func(group *Group) error + FindGroupByName func(name string) (*Group, error) + ListGroups func() ([]*Group, error) + SaveGroup func(group *Group) error + type Item struct + func FindAll(ctx context.Context, idString string) ([]*Item, error) + func NewItem(data string, at time.Time) *Item + func (i *Item) Bump(newTime time.Time) *Item + func (i *Item) Data() string + func (i *Item) Do() + func (i *Item) ID() string + func (i *Item) NextID() string + func (i *Item) PreviousID() string + func (i *Item) ResetInternalID() + func (i *Item) SetID(id string) + func (i *Item) Skip() + func (i *Item) Status() string + func (i *Item) String() string + func (i *Item) Tags() []*Tag + func (i *Item) Time() time.Time + type ItemCreator struct + func (ic *ItemCreator) Create(data string, at time.Time) (*Item, error) + func (ic *ItemCreator) Delete(item *Item) error + func (ic *ItemCreator) Edit(item *Item, data string, timeString string) (*Item, error) + func (ic *ItemCreator) GenerateAndSaveMetadata(item *Item) error + type ItemPrinter struct + PrintFormat PrintFormat + func NewItemPrinter(ctx context.Context) *ItemPrinter + func (ip *ItemPrinter) FPrint(w io.Writer, items ...*Item) + func (ip *ItemPrinter) Print(items ...*Item) + type ItemStore interface + Delete func(item *Item) error + Find func(id string) (*Item, error) + FindAll func(id string) ([]*Item, error) + ListFilters func(filters []filter.Filter) ([]*Item, error) + Save func(item *Item) error + type JSONItem struct + Data string + ID string + InternalID string + NextID string + PreviousID string + Status string + Tags []string + TimeString string + type PrintFormat int + func GetPrintFormat(format string) PrintFormat + func GetPrintFormatFromContext(ctx context.Context) PrintFormat + type StatusFilter struct + func NewStatusFilter(comparison filter.FilterComparison, statuses ...string) *StatusFilter + func (statusFilter *StatusFilter) Match(i interface{}) (bool, error) + func (statusFilter *StatusFilter) String() string + type Store interface + Close func() + WithContext func(ctx context.Context) Store + type StormGroup struct + CreatedAt int64 + FilterString string + Name string + RowID uint64 + type StormItem struct + Data string + Datetime int64 + ID string + NextID string + PreviousID string + RowID uint64 + Status string + type StormTag struct + CreatedAt int64 + Name string + RowID uint64 + Type string + type Tag struct + func NewTag(name string) *Tag + func (t *Tag) CreatedAt() time.Time + func (t *Tag) Name() string + func (t *Tag) String() string + func (t *Tag) TagType() string + type TagFilter struct + func NewTagFilter(store Store, comparison filter.FilterComparison, name string) *TagFilter + func (tagFilter *TagFilter) Match(i interface{}) (bool, error) + func (tagFilter *TagFilter) String() string + type TagStore interface + FindTag func(name string) (*Tag, error) + ListTags func() ([]*Tag, error) + SaveTag func(tag *Tag) error + type TimeParser struct + Input string + func (tp TimeParser) Parse() (*Timespan, error) + type Timespan struct + End time.Time + Start time.Time + func NewTimespan(start, end time.Time) *Timespan + func (ts *Timespan) String() string + func (ts Timespan) EarliestTime() time.Time + func (ts Timespan) LatestTime() time.Time