Documentation ¶ Index ¶ Constants func OEmbedRecordFromFeature(ctx context.Context, body []byte, opts *OEmbedOptions) (*oembed.Photo, error) type Media type OEmbedOptions Constants ¶ View Source const WHOSONFIRST_URI_TEMPLATE string = "wof://id/{wofid}" Variables ¶ This section is empty. Functions ¶ func OEmbedRecordFromFeature ¶ func OEmbedRecordFromFeature(ctx context.Context, body []byte, opts *OEmbedOptions) (*oembed.Photo, error) Types ¶ type Media ¶ type Media struct { Extension string `json:"extension"` Height int `json:"height"` Mimetype string `json:"mimetype"` Secret string `json:"secret"` Width int `json:"width"` } type OEmbedOptions ¶ type OEmbedOptions struct { AuthorName string AuthorURITemplate string ProviderName string ProviderURL string MediaURITemplate string MediaLabel string ThumbnailMediaLabel string } Source Files ¶ View all Source files oembed.go Click to show internal directories. Click to hide internal directories.