Documentation ¶
Index ¶
- type BookmarkRepository
- func (r *BookmarkRepository) Add(url string, title string, tags []string, notes string) (*models.Bookmark, error)
- func (r *BookmarkRepository) DeleteByURL(url string) (err error)
- func (r *BookmarkRepository) List(tagNames []string) ([]models.Bookmark, error)
- func (r *BookmarkRepository) Update(url string, newURL string, title string, tags []string, notes string) (*models.Bookmark, error)
- type TagRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookmarkRepository ¶
BookmarkRepository represents the tag's repository contract.
func (*BookmarkRepository) Add ¶
func (r *BookmarkRepository) Add(url string, title string, tags []string, notes string) (*models.Bookmark, error)
Add bookmark
func (*BookmarkRepository) DeleteByURL ¶
func (r *BookmarkRepository) DeleteByURL(url string) (err error)
DeleteByURL removes bookmark and clear not active tags
type TagRepository ¶
TagRepository represents the tag's repository contract.
func (*TagRepository) DeleteNotActive ¶
func (r *TagRepository) DeleteNotActive() (err error)
DeleteNotActive removes not used tags
Click to show internal directories.
Click to hide internal directories.