youtubepreviewer

package
v0.0.0-...-89d9964 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) Public

func (e *APIError) Public()

type NotFoundError

type NotFoundError struct{}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Public

func (e *NotFoundError) Public()

type Previewer

type Previewer struct {
	Client *http.Client
	Key    string
	// contains filtered or unexported fields
}

func (*Previewer) Preview

func (p *Previewer) Preview(ctx context.Context, u *url.URL) (urlpreview.Preview, error)

type PublicError

type PublicError interface {
	Public()
}

type YoutubePreview

type YoutubePreview struct {
	// contains filtered or unexported fields
}

func (*YoutubePreview) String

func (p *YoutubePreview) String() string

Jump to

Keyboard shortcuts

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