Documentation
¶
Index ¶
- func AddBookmark(db *sqlx.DB, b *models.Bookmark, broadcast func(msg interface{})) error
- func AddBookmarkByURL(db *sqlx.DB, u string) error
- func CheckBookmarks(db *sqlx.DB) error
- func DeleteBookmark(db *sqlx.DB, b *models.Bookmark, broadcast func(interface{})) error
- func ImportBookmarks(db *sqlx.DB, r io.Reader) error
- func ListBookmarks(db *sqlx.DB) ([]*models.Bookmark, error)
- func MarkBookmarkAsPostpone(db *sqlx.DB, id int64, broadcast func(msg interface{})) error
- func MarkBookmarkAsRead(db *sqlx.DB, id int64, broadcast func(msg interface{})) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBookmark ¶
AddBookmark stores one bookmark into the database.
func AddBookmarkByURL ¶
AddBookmarkByURL reads a URL and inserts its bookmark into the database.
func DeleteBookmark ¶
DeleteBookmark deletes one bookmark from the database.
func ImportBookmarks ¶
ImportBookmarks takes a reader that has one URL per row and inserts them into DB.
func ListBookmarks ¶
ListBookmarks list all bookmarks.
func MarkBookmarkAsPostpone ¶
MarkBookmarkAsPostpone moves a bookmark to a delayed position in the inbox.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.