pbs

package
v1.38.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: OSL-3.0 Imports: 8 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	Origin = "http://content.services.pbs.org"
)

Variables

This section is empty.

Functions

func Slug added in v1.37.8

func Slug(addr string) (string, error)

Types

type Asset

type Asset struct {
	Resource struct {
		Duration   Duration
		MP4_Videos []AssetVideo
		Title      string
	}
}

func NewAsset

func NewAsset(slug string) (*Asset, error)

type AssetVideo added in v1.37.9

type AssetVideo struct {
	Profile string
	URL     string
}

type Duration added in v1.37.6

type Duration int64

func (Duration) String added in v1.37.6

func (d Duration) String() string

type Progress added in v1.37.6

type Progress struct {
	*http.Response
	// contains filtered or unexported fields
}

func NewProgress added in v1.37.6

func NewProgress(res *http.Response) *Progress

func (*Progress) Read added in v1.37.6

func (p *Progress) Read(buf []byte) (int, error)

type Video added in v1.37.6

type Video struct {
	Episodes []struct {
		Episode struct {
			Assets []struct {
				Object_Type string
				Slug        string
			}
		}
		Slug string
	}
}

Jump to

Keyboard shortcuts

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