Documentation
¶
Index ¶
Constants ¶
View Source
const TypeLink = "link"
View Source
const TypePhoto = "photo"
View Source
const TypeRich = "rich"
View Source
const TypeVideo = "video"
Variables ¶
This section is empty.
Functions ¶
func LookupWithURI ¶
LookupWithURI uses a URI to find the oEmbed endpoint
Types ¶
type OEmbed ¶
type OEmbed struct {
Version string `json:"version,omitempty"`
Type string `json:"type,omitempty"`
ProviderName string `json:"provider_name,omitempty"`
ProviderURL string `json:"provider_url,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Title string `json:"title,omitempty"`
AuthorName string `json:"author_name,omitempty"`
AuthorURL string `json:"author_url,omitempty"`
HTML string `json:"html,omitempty"`
}
func ParseGoQuery ¶
ParseGoQuery searches a goquery document for oEmbed metadata. This is provided as a shortcut for use cases where the caller has already parsed the HTML document into a goquery object.
type Provider ¶
type Provider struct {
Name string `json:"provider_name"`
URL string `json:"provider_url"`
Endpoints []ProviderEndpoint `json:"endpoints"`
}
Click to show internal directories.
Click to hide internal directories.