types

package
v0.0.0-...-5ec133c Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Name        string  `json:"author"`
	ChannelId   string  `json:"authorId"`
	Description string  `json:"description"`
	Videos      []Video `json:"latestVideos"`
	Subscribers int     `json:"subCount"`
	TotalViews  int     `json:"totalViews"`
}

type Context

type Context struct {
	PrevView   string
	ActionInfo map[string]string
}

type Playlist

type Playlist struct {
	Title       string  `json:"title"`
	Id          string  `json:"playlistId"`
	Description string  `json:"description"`
	Author      string  `json:"author"`
	AuthorId    string  `json:"authorId"`
	VideoCount  int     `json:"videoCount"`
	Videos      []Video `json:"videos"`
}

type Result

type Result struct {
	Type          string `json:"type"`
	Title         string `json:"title"`
	VideoID       string `json:"videoId"`
	Author        string `json:"author"`
	PublishedText string `json:"publishedText"`
	LengthSeconds int    `json:"lengthSeconds"`
	ViewCount     int    `json:"viewCount"`
}

type Video

type Video struct {
	Title         string `json:"title"`
	VideoId       string `json:"videoId"`
	Description   string `json:"description"`
	Views         int    `json:"viewCount"`
	Likes         int    `json:"likeCount"`
	Dislikes      int    `json:"dislikeCount"`
	Author        string `json:"author"`
	AuthorId      string `json:"authorId"`
	LengthSeconds int    `json:"lengthSeconds"`
	PublishedText string `json:"publishedText"`
}

Jump to

Keyboard shortcuts

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