bolt

package
v0.99.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BucketEntriesRead string = "entries/read"

BucketEntriesRead - read entries bucket

View Source
const BucketEntriesUnread string = "entries/unread"

BucketEntriesUnread - unread entries bucket

View Source
const BucketFeeds string = "feeds"

BucketFeeds - feeds bucket

Variables

This section is empty.

Functions

func ConvertID

func ConvertID(id int64) []byte

ConvertID - converts int64 from Miniflux to []byte for bbolt db

Types

type Bolt

type Bolt struct {
	DB     *bbolt.DB
	App    string
	Client api.Client
	Status chan string
}

Bolt - bbolt db store

func (*Bolt) Close

func (s *Bolt) Close() error

Close the db

func (*Bolt) DeleteFeeds

func (s *Bolt) DeleteFeeds() error

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

func (s *Bolt) Init() error

Init store

func (*Bolt) MarkEntry

func (s *Bolt) MarkEntry(id string, status string) error

MarkEntry - mark entry as read or unread in local db

func (*Bolt) SaveEntries

func (s *Bolt) SaveEntries(entries miniflux.Entries, dateFormat string) error

SaveEntries to entries/unread

func (*Bolt) SendReadEntries

func (s *Bolt) SendReadEntries() error

SendReadEntries to miniflux (from entries/read)

func (*Bolt) Sync

func (s *Bolt) Sync(dateFormat string, sort *config.Sort) error

Sync local store

func (*Bolt) SyncFeeds

func (s *Bolt) SyncFeeds(feeds miniflux.Feeds) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL