package bolt
import "git.sr.ht/~xn/miniflux-cli/storage/bolt"
Index ¶
- Constants
- func ConvertID(id int64) []byte
- type Bolt
- func (s *Bolt) Close() error
- func (s *Bolt) DeleteFeeds() error
- func (s *Bolt) GetEntries(status string) (*orderedmap.OrderedMap, error)
- func (s *Bolt) GetFeeds() (*orderedmap.OrderedMap, error)
- func (s *Bolt) Init() error
- func (s *Bolt) MarkEntry(id string, status string) error
- func (s *Bolt) SaveEntries(entries miniflux.Entries, dateFormat string) error
- func (s *Bolt) SendReadEntries() error
- func (s *Bolt) Sync(dateFormat string, sort *config.Sort) error
- func (s *Bolt) SyncFeeds(feeds miniflux.Feeds) error
- type Entry
Constants ¶
const BucketEntriesRead string = "entries/read"
BucketEntriesRead - read entries bucket
const BucketEntriesUnread string = "entries/unread"
BucketEntriesUnread - unread entries bucket
const BucketFeeds string = "feeds"
BucketFeeds - feeds bucket
Functions ¶
func ConvertID ¶
ConvertID - converts int64 from Miniflux to []byte for bbolt db
Types ¶
type Bolt ¶
Bolt - bbolt db store
func (*Bolt) Close ¶
Close the db
func (*Bolt) DeleteFeeds ¶
DeleteFeeds removes all feeds
func (*Bolt) GetEntries ¶
func (s *Bolt) GetEntries(status string) (*orderedmap.OrderedMap, error)
GetEntries from store
func (*Bolt) GetFeeds ¶
func (s *Bolt) GetFeeds() (*orderedmap.OrderedMap, error)
GetFeeds from store
func (*Bolt) Init ¶
Init store
func (*Bolt) MarkEntry ¶
MarkEntry - mark entry as read or unread in local db
func (*Bolt) SaveEntries ¶
SaveEntries to entries/unread
func (*Bolt) SendReadEntries ¶
SendReadEntries to miniflux (from entries/read)
func (*Bolt) Sync ¶
Sync local store
func (*Bolt) SyncFeeds ¶
SyncFeeds - save new feeds and remove old from db
type Entry ¶
type Entry struct { FeedID string `json:"feed_id"` URL string `json:"url"` Title string `json:"title"` Content string `json:"content"` }
Entry - stored article
Source Files ¶
bolt.go entries.go feeds.go sync.go
- Version
- v0.99.3 (latest)
- Published
- Apr 29, 2021
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 1 week ago –
Tools for package owners.