Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + const SourceURL + var Providers []Provider + func HasProvider(url string) bool + func Sync(sourceURL string) error + type Endpoint struct + Discovery bool + Formats []string + Schemes []string + URL string + func (j *Endpoint) MarshalJSON() ([]byte, error) + func (j *Endpoint) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Endpoint) UnmarshalJSON(input []byte) error + func (j *Endpoint) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Error struct + Details xerrors.Frame + Message string + URL string + func (e Error) Error() string + func (e Error) Format(f fmt.State, c rune) + func (e Error) FormatError(p xerrors.Printer) error + type OEmbed struct + AuthorName string + AuthorURL string + CacheAge int + ProviderName string + ProviderURL string + ThumbnailHeight int + ThumbnailURL string + ThumbnailWidth int + Title string + Type string + URL string + Version string + func Extract(url string, params *Params) (*OEmbed, error) + func (j *OEmbed) MarshalJSON() ([]byte, error) + func (j *OEmbed) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *OEmbed) UnmarshalJSON(input []byte) error + func (j *OEmbed) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Params struct + MaxHeight int + MaxWidth int + type Photo struct + Height int + URL string + Width int + func (j *Photo) MarshalJSON() ([]byte, error) + func (j *Photo) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Photo) UnmarshalJSON(input []byte) error + func (j *Photo) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Provider struct + Endpoints []Endpoint + Name string + URL string + func (j *Provider) MarshalJSON() ([]byte, error) + func (j *Provider) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Provider) UnmarshalJSON(input []byte) error + func (j *Provider) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Rich struct + HTML string + Height int + Width int + func (j *Rich) MarshalJSON() ([]byte, error) + func (j *Rich) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Rich) UnmarshalJSON(input []byte) error + func (j *Rich) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error + type Video struct + HTML string + Height int + Width int + func (j *Video) MarshalJSON() ([]byte, error) + func (j *Video) MarshalJSONBuf(buf fflib.EncodingBuffer) error + func (j *Video) UnmarshalJSON(input []byte) error + func (j *Video) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error