Versions in this module Expand all Collapse all v0 v0.1.1-beta1 Jul 17, 2021 v0.1.0 Jul 1, 2021 Changes in this version + var ErrUnableToFindMetadataSection = fmt.Errorf("unable to find metadata yaml at header of entry") + var StorageFilenameFormat = "2006-01-02.md" + var StorageGlob = "*.md" + type Store struct + Directory string + func New(dir string, createDirIfMissing bool) (*Store, error) + func (x *Store) Count() int + func (x *Store) CreateOrUpdateEntry(e *v1.Entry) (*v1.Entry, error) + func (x *Store) Get(id v1.ID, forceRead bool) (*v1.Entry, error) + func (x *Store) HasEntry(id v1.ID) bool + func (x *Store) ListAll() ([]*v1.Entry, error) + func (x *Store) LoadFromFile(fileName string) (*v1.Entry, error) + func (x *Store) LoadFromID(id v1.ID) (*v1.Entry, error) + func (x *Store) LoadFromReader(r io.Reader) (*v1.Entry, error) + func (x *Store) Next(id v1.ID) (*v1.Entry, error) + func (x *Store) Previous(id v1.ID) (*v1.Entry, error) + func (x *Store) Reconcile(id v1.ID) (*v1.Entry, error) + func (x *Store) ShouldReloadFromDisk(id v1.ID) bool + func (x *Store) Status() v1.SyncStatus + func (x *Store) StoragePath(id v1.ID) string + func (x *Store) Validate() error + func (x *Store) Write(e *v1.Entry) error