Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnfurlURLs ¶
UnfurlURLs assumes clients pass URLs verbatim that were validated and processed by GetURLs.
Types ¶
type LinkPreview ¶
type LinkPreview struct {
common.LinkPreview
}
type OpenGraphMetadata ¶
type OpenGraphUnfurler ¶
type OpenGraphUnfurler struct {
// contains filtered or unexported fields
}
OpenGraphUnfurler can be used either as the default unfurler for some websites (e.g. GitHub), or as a fallback strategy. It parses HTML and extract OpenGraph meta tags. If an oEmbed endpoint is available, it should be preferred.
type UnfurlError ¶
type UnfurlError struct {
// contains filtered or unexported fields
}
UnfurlError means a non-critical error, and that processing of the preview should be interrupted and the preview probably ignored.
func (UnfurlError) Error ¶
func (ue UnfurlError) Error() string
func (UnfurlError) Unwrap ¶
func (ue UnfurlError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.