Versions in this module Expand all Collapse all v0 v0.2.0 Sep 17, 2024 Changes in this version type Bookmark + Description string + Title string v0.1.0 Sep 3, 2024 Changes in this version + var ErrBadRequest = errors.New("linkding: bad request") + var ErrInternalServerError = errors.New("linkding: internal server error") + var ErrNotFound = errors.New("linkding: not found") + var ErrUnauthorized = errors.New("linkding: unauthorized") + type Bookmark struct + DateAdded time.Time + DateModified time.Time + FaviconURL string + ID int + IsArchived bool + Notes string + PreviewImageURL string + Shared bool + TagNames []string + URL string + Unread bool + UserDescription string + UserTitle string + WebArchiveSnapshotURL string + WebsiteDescription string + WebsiteTitle string + type Client struct + func NewClient(baseURL, token string) *Client + func (c *Client) ArchiveBookmark(id int) error + func (c *Client) CreateBookmark(payload CreateBookmarkRequest) (*Bookmark, error) + func (c *Client) CreateTag(name string) (*Tag, error) + func (c *Client) DeleteBookmark(id int) error + func (c *Client) GetBookmark(id int) (*Bookmark, error) + func (c *Client) GetTag(id int) (*Tag, error) + func (c *Client) GetUserPreferences() (*UserPreferences, error) + func (c *Client) ListArchivedBookmarks(params ListBookmarksParams) (*ListBookmarksResponse, error) + func (c *Client) ListBookmarks(params ListBookmarksParams) (*ListBookmarksResponse, error) + func (c *Client) ListTags(params ListTagsParams) (*ListTagsResponse, error) + func (c *Client) UnarchiveBookmark(id int) error + func (c *Client) UpdateBookmark(id int, payload CreateBookmarkRequest) (*Bookmark, error) + type CreateBookmarkRequest struct + Description string + IsArchived bool + Notes string + Shared bool + TagNames []string + Title string + URL string + Unread bool + type CreateTagRequest struct + Name string + type ListBookmarksParams struct + Limit int + Offset int + Query string + Unread bool + type ListBookmarksResponse struct + Count int + Next string + Previous string + Results []Bookmark + type ListTagsParams struct + Limit int + Offset int + type ListTagsResponse struct + Count int + Next string + Previous string + Results []Tag + type Tag struct + DateAdded time.Time + ID int + Name string + type UserPreferences struct + BookmarkDateDisplay string + BookmarkLinkTarget string + DisplayURL bool + EnableFavicons bool + EnablePublicSharing bool + EnableSharing bool + PermanentNotes bool + SearchPreferences struct{ ... } + TagSearch string + Theme string + WebArchiveIntegration string