Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternalIP = errors.New("internal IP addresses are not allowed")
ErrInternalIP indicates that a link preview target resolves to a disallowed internal address.
Functions ¶
This section is empty.
Types ¶
type HTMLMeta ¶
type HTMLMeta struct {
Title string `json:"title"`
Description string `json:"description"`
Image string `json:"image"`
}
HTMLMeta contains metadata used to build a link preview.
type HTMLMetaFetcher ¶
type HTMLMetaFetcher struct {
// contains filtered or unexported fields
}
HTMLMetaFetcher fetches and caches standards-based link preview metadata.
func NewHTMLMetaFetcher ¶
func NewHTMLMetaFetcher() *HTMLMetaFetcher
NewHTMLMetaFetcher creates a link preview fetcher with an SSRF-safe HTTP client.
Click to show internal directories.
Click to hide internal directories.