Documentation ¶
Index ¶
- Variables
- type BoltStore
- func (store *BoltStore) ClearCache() error
- func (store *BoltStore) DeleteFeed(id string) (*app.Feed, error)
- func (store *BoltStore) EvictFromCache(before time.Time) error
- func (store *BoltStore) ExistsFeed(url string) bool
- func (store *BoltStore) ForEachFeed(cb func(*app.Feed) error) error
- func (store *BoltStore) GetFeed(id string) (*app.Feed, error)
- func (store *BoltStore) GetFromCache(key string) (*model.CacheItem, error)
- func (store *BoltStore) ListFeeds(page, limit int) (*app.FeedCollection, error)
- func (store *BoltStore) SaveFeed(feed *app.Feed) error
- func (store *BoltStore) Shutdown() error
- func (store *BoltStore) StoreToCache(key string, item *model.CacheItem) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CACHE_BUCKET = []byte("CACHE")
CACHE_BUCKET bucket name
View Source
var FEED_BUCKET = []byte("FEED")
FEED_BUCKET bucket name
Functions ¶
This section is empty.
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
BoltStore is a data store backed by BoltDB
func NewBoltStore ¶
NewBoltStore creates a data store backed by BoltDB
func (*BoltStore) ClearCache ¶
ClearCache removes all items from the cache.
func (*BoltStore) DeleteFeed ¶
DeleteFeed removes a feed.
func (*BoltStore) EvictFromCache ¶
EvictFromCache manage the cache eviction.
func (*BoltStore) ExistsFeed ¶
ExistsFeed returns true if a feed exists for this url.
func (*BoltStore) ForEachFeed ¶
ForEachFeed iterates over all feeds
func (*BoltStore) GetFromCache ¶
GetFromCache returns a cached item.
func (*BoltStore) ListFeeds ¶
func (store *BoltStore) ListFeeds(page, limit int) (*app.FeedCollection, error)
ListFeeds returns a paginated list of feeds.
Click to show internal directories.
Click to hide internal directories.