oembed

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL