Documentation ¶
Overview ¶
Package store provides a store for the youtube service metadata
Index ¶
- type BoltDB
- func (s *BoltDB) CheckProcessed(entry feed.Entry) (found bool, ts time.Time, err error)
- func (s *BoltDB) CountProcessed() (count int)
- func (s *BoltDB) Exist(entry feed.Entry) (bool, error)
- func (s *BoltDB) Last() (feed.Entry, error)
- func (s *BoltDB) ListProcessed() (res []string, err error)
- func (s *BoltDB) Load(channelID string, maximum int) ([]feed.Entry, error)
- func (s *BoltDB) Remove(entry feed.Entry) error
- func (s *BoltDB) RemoveOld(channelID string, keep int) ([]string, error)
- func (s *BoltDB) ResetProcessed(entry feed.Entry) error
- func (s *BoltDB) Save(entry feed.Entry) (bool, error)
- func (s *BoltDB) SetProcessed(entry feed.Entry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
BoltDB store for metadata related to downloaded YouTube audio.
func (*BoltDB) CheckProcessed ¶
CheckProcessed get processed status and returns timestamp for a given channel+video returns found=true if was set before and also the timestamp from stored entry.Published
func (*BoltDB) CountProcessed ¶
CountProcessed returns the number of processed entries stored in processedBkt
func (*BoltDB) ListProcessed ¶
ListProcessed returns processed entries stored in processedBkt
func (*BoltDB) Load ¶
Load entries from bolt for a given channel, up to max in reverse order (from newest to oldest)
func (*BoltDB) RemoveOld ¶
RemoveOld removes old entries from bolt and returns the list of removed entry.File the caller should delete the files important: this method returns the list of removed keys even if there was an error
func (*BoltDB) ResetProcessed ¶
ResetProcessed resets processed status for a given channel+video