video

package
v0.0.0-...-606d7b1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Video

type Video struct {
	URL         string         `json:"url"`
	SecureURL   string         `json:"secure_url"`
	Type        string         `json:"type"`
	Width       uint64         `json:"width"`
	Height      uint64         `json:"height"`
	Actors      []*actor.Actor `json:"actors,omitempty"`
	Directors   []string       `json:"directors,omitempty"`
	Writers     []string       `json:"writers,omitempty"`
	Duration    uint64         `json:"duration,omitempty"`
	ReleaseDate *time.Time     `json:"release_date,omitempty"`
	Tags        []string       `json:"tags,omitempty"`
}

Video defines Open Graph Video type

func AddDuration

func AddDuration(videos []*Video, v uint64) []*Video

func AddHeight

func AddHeight(videos []*Video, v uint64) []*Video

func AddReleaseDate

func AddReleaseDate(videos []*Video, v *time.Time) []*Video

func AddSecureURL

func AddSecureURL(videos []*Video, v string) []*Video

func AddTag

func AddTag(videos []*Video, v string) []*Video

func AddType

func AddType(videos []*Video, v string) []*Video

func AddURL

func AddURL(videos []*Video, v string) []*Video

func AddWidth

func AddWidth(videos []*Video, v uint64) []*Video

func NewVideo

func NewVideo() *Video

Jump to

Keyboard shortcuts

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