Documentation ¶
Index ¶
- Variables
- type Store
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StorageFilenameFormat = "2006-01-02.md" StorageGlob = "*.md" ErrUnableToFindMetadataSection = fmt.Errorf("unable to find metadata yaml at header of entry") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { *sync.Mutex Directory string `yaml"directory" validate:"required,dir"` // contains filtered or unexported fields }
func (*Store) CreateOrUpdateEntry ¶
func (*Store) Status ¶
func (x *Store) Status() v1.SyncStatus
Click to show internal directories.
Click to hide internal directories.