Versions in this module Expand all Collapse all v0 v0.6.0 Jun 21, 2020 Changes in this version + var ErrNoBookmarkKey = errors.New("Missing Bookmark.ID or Bookmark.URL") + var ErrNoBookmarkURL = errors.New("Missing Bookmark.URL") + var ErrNoFeedKey = errors.New("Missing Feed.ID or Feed.URL") + var ErrNoFeedURL = errors.New("Missing Feed.URL") + var ErrNoThoughtKey = errors.New("Missing Thought.ID or Thought.Title") + var ErrNoThoughtTitle = errors.New("Missing Thought.Title") + var ErrNotExistingFeedItem = errors.New("Item does not exist in Feed") + type Bookmark struct + Archived bool + Content string + Created time.Time + Excerpt string + ID string + Tags Tags + Title string + URL string + Updated time.Time + func (bookmark *Bookmark) Fetch() error + type Feed struct + Created time.Time + Etag string + ID string + Items FeedItems + LastAuthored time.Time + Refreshed time.Time + Tags Tags + Title string + URL string + Updated time.Time + func (feed *Feed) DeleteItem(ID string) error + func (feed *Feed) Fetch() error + func (feed *Feed) GetItem(ID string) *FeedItem + type FeedItem struct + Content string + Created time.Time + Date time.Time + ID string + Title string + URL string + Updated time.Time + func (i *FeedItem) Scan(value interface{}) error + func (i FeedItem) Value() (driver.Value, error) + func (item *FeedItem) ToBookmark() *Bookmark + type FeedItems []*FeedItem + func (i *FeedItems) Scan(value interface{}) error + func (i FeedItems) Value() (driver.Value, error) + type ListBookmarksOptions struct + Limit int + Offset int + ReadItLater bool + Search string + Tags Tags + type ListFeedsOptions struct + Limit int + NotRefreshedSince time.Time + Offset int + Search string + Tags Tags + type ListThoughtsOptions struct + Limit int + Offset int + Search string + Tags Tags + type Store struct + func New(path string) (*Store, error) + func (store *Store) Authenticate(username string, password string) (string, error) + func (store *Store) DeleteBookmark(bookmark *Bookmark) error + func (store *Store) DeleteFeed(feed *Feed) error + func (store *Store) DeleteThought(thought *Thought) error + func (store *Store) GetBookmark(bookmark *Bookmark) error + func (store *Store) GetFeed(feed *Feed) error + func (store *Store) GetThought(thought *Thought) error + func (store *Store) GetUser(user *User) error + func (store *Store) ListBookmarks(options *ListBookmarksOptions) (*[]*Bookmark, int) + func (store *Store) ListFeeds(options *ListFeedsOptions) (*[]*Feed, int) + func (store *Store) ListThoughts(options *ListThoughtsOptions) (*[]*Thought, int) + func (store *Store) PersistBookmark(bookmark *Bookmark) error + func (store *Store) PersistFeed(feed *Feed) error + func (store *Store) PersistThought(thought *Thought) error + func (store *Store) RefreshFeed(feed *Feed) error + func (store *Store) UserTokenExists(token string) bool + type Tags []string + func (t *Tags) Scan(value interface{}) error + func (t Tags) Value() (driver.Value, error) + type Thought struct + Content string + Created time.Time + ID string + Tags Tags + Title string + Updated time.Time + type User struct + Created time.Time + Password string + Token string + Updated time.Time + Username string