video

package
v0.0.0-...-a14f63d Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 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,omitempty"`
	SecureURL   string         `json:"secure_url,omitempty"`
	Type        string         `json:"type,omitempty"`
	Width       uint64         `json:"width,omitempty"`
	Height      uint64         `json:"height,omitempty"`
	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