Documentation ¶
Index ¶
- func DownloadBookmark(url string) (io.ReadCloser, string, error)
- func GenerateEbook(req ProcessRequest) (book model.Bookmark, err error)
- func GetImages(html string) (map[string]string, error)
- func ProcessBookmark(req ProcessRequest) (book model.Bookmark, isFatalErr bool, err error)
- func RemoveUTMParams(url string) (string, error)
- type ProcessRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadBookmark ¶
func DownloadBookmark(url string) (io.ReadCloser, string, error)
DownloadBookmark downloads bookmarked page from specified URL. Return response body, make sure to close it later.
func GenerateEbook ¶ added in v1.5.5
func GenerateEbook(req ProcessRequest) (book model.Bookmark, err error)
func ProcessBookmark ¶
func ProcessBookmark(req ProcessRequest) (book model.Bookmark, isFatalErr bool, err error)
ProcessBookmark process the bookmark and archive it if needed. Return three values, is error fatal, and error value.
func RemoveUTMParams ¶
RemoveUTMParams removes the UTM parameters from URL.
Types ¶
Click to show internal directories.
Click to hide internal directories.