Documentation ¶
Index ¶
- type Accessibility
- type AccessibilityData
- type AddToPlaylistCommand
- type Avatar
- type ChannelMetadataRenderer
- type ChannelVideosResponse
- type CommandMetadata
- type Contents
- type Continuation
- type ContinuationContents
- type CreatePlaylistServiceEndpoint
- type Endpoint
- type GridContinuation
- type GridContinuationItem
- type GridRenderer
- type GridVideoRenderer
- type Icon
- type Info
- type InitialDataResponse
- type ItemSectionRenderer
- type ItemSectionRendererContent
- type LinkAlternate
- type Menu
- type MenuRenderer
- type MenuRendererItem
- type MenuServiceItemRenderer
- type MenuServiceItemRendererText
- type Metadata
- type Microformat
- type MicroformatDataRenderer
- type NavigationEndpoint
- type NextContinuationData
- type OnCreateListCommand
- type Param
- type PlaylistEditEndpoint
- type PlaylistEditEndpointAction
- type PublishedTimeText
- type RendererText
- type Response
- type ResponseContext
- type Run
- type SectionListRenderer
- type SectionListRendererContent
- type ServiceEndpoint
- type ServiceTrackingParam
- type ShortViewCountText
- type SignalServiceEndpoint
- type SignalServiceEndpointAction
- type Tab
- type TabRenderer
- type TabRendererContent
- type Thumbnail
- type ThumbnailItem
- type ThumbnailOverlay
- type ThumbnailOverlayNowPlayingRenderer
- type ThumbnailOverlayNowPlayingRendererText
- type ThumbnailOverlayTimeStatusRenderer
- type ThumbnailOverlayToggleButtonRenderer
- type Timing
- type Title
- type ToggledAccessibility
- type ToggledIcon
- type ToggledServiceEndpoint
- type TwoColumnBrowseResultsRenderer
- type URLEndpoint
- type UntoggledAccessibility
- type UntoggledIcon
- type UntoggledServiceEndpoint
- type ViewCountText
- type WatchEndpoint
- type WebCommandMetadata
- type WebResponseContextExtensionData
- type YtConfigData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessibility ¶
type Accessibility struct {
AccessibilityData AccessibilityData `json:"accessibilityData"`
}
type AccessibilityData ¶
type AccessibilityData struct {
Label string `json:"label"`
}
type AddToPlaylistCommand ¶
type Avatar ¶
type Avatar struct {
Thumbnails []ThumbnailItem `json:"thumbnails"`
}
type ChannelMetadataRenderer ¶
type ChannelMetadataRenderer struct { Title string `json:"title"` Description string `json:"description"` PlusPageLink string `json:"plusPageLink"` ExternalID string `json:"externalId"` Keywords string `json:"keywords"` OwnerUrls []string `json:"ownerUrls"` Avatar Avatar `json:"avatar"` ChannelURL string `json:"channelUrl"` IsFamilySafe bool `json:"isFamilySafe"` AvailableCountryCodes []string `json:"availableCountryCodes"` AndroidDeepLink string `json:"androidDeepLink"` AndroidAppindexingLink string `json:"androidAppindexingLink"` IosAppindexingLink string `json:"iosAppindexingLink"` TabPath string `json:"tabPath"` VanityChannelURL string `json:"vanityChannelUrl"` }
type ChannelVideosResponse ¶
type CommandMetadata ¶
type CommandMetadata struct {
WebCommandMetadata WebCommandMetadata `json:"webCommandMetadata"`
}
type Contents ¶
type Contents struct {
TwoColumnBrowseResultsRenderer TwoColumnBrowseResultsRenderer `json:"twoColumnBrowseResultsRenderer"`
}
type Continuation ¶
type Continuation struct {
NextContinuationData NextContinuationData `json:"nextContinuationData"`
}
type ContinuationContents ¶
type ContinuationContents struct {
GridContinuation GridContinuation `json:"gridContinuation"`
}
type Endpoint ¶
type Endpoint struct { CommandMetadata CommandMetadata `json:"commandMetadata"` URLEndpoint URLEndpoint `json:"urlEndpoint"` }
type GridContinuation ¶
type GridContinuation struct { Items []GridContinuationItem `json:"items"` Continuations []Continuation `json:"continuations"` TrackingParams string `json:"trackingParams"` }
type GridContinuationItem ¶
type GridContinuationItem struct {
GridVideoRenderer GridVideoRenderer `json:"gridVideoRenderer"`
}
type GridRenderer ¶
type GridRenderer struct { Items []GridContinuationItem `json:"items"` Continuations []Continuation `json:"continuations"` }
type GridVideoRenderer ¶
type GridVideoRenderer struct { VideoID string `json:"videoId"` Thumbnail Thumbnail `json:"thumbnail"` Title Title `json:"title"` PublishedTimeText PublishedTimeText `json:"publishedTimeText"` ViewCountText ViewCountText `json:"viewCountText"` TrackingParams string `json:"trackingParams"` ShortViewCountText ShortViewCountText `json:"shortViewCountText"` Menu Menu `json:"menu"` ThumbnailOverlays []ThumbnailOverlay `json:"thumbnailOverlays"` }
func FetchAll ¶
func FetchAll(channelID string) ([]GridVideoRenderer, error)
type InitialDataResponse ¶
type InitialDataResponse struct {
Contents Contents `json:"contents"`
}
type ItemSectionRenderer ¶
type ItemSectionRenderer struct {
Contents []ItemSectionRendererContent `json:"contents"`
}
type ItemSectionRendererContent ¶
type ItemSectionRendererContent struct {
GridRenderer GridRenderer `json:"gridRenderer"`
}
type LinkAlternate ¶
type LinkAlternate struct {
HrefURL string `json:"hrefUrl"`
}
type Menu ¶
type Menu struct {
MenuRenderer MenuRenderer `json:"menuRenderer"`
}
type MenuRenderer ¶
type MenuRenderer struct { Items []MenuRendererItem `json:"items"` TrackingParams string `json:"trackingParams"` Accessibility Accessibility `json:"accessibility"` }
type MenuRendererItem ¶
type MenuRendererItem struct {
MenuServiceItemRenderer MenuServiceItemRenderer `json:"menuServiceItemRenderer"`
}
type MenuServiceItemRenderer ¶
type MenuServiceItemRenderer struct { Text MenuServiceItemRendererText `json:"text"` Icon Icon `json:"icon"` ServiceEndpoint ServiceEndpoint `json:"serviceEndpoint"` TrackingParams string `json:"trackingParams"` }
type MenuServiceItemRendererText ¶
type MenuServiceItemRendererText struct {
Runs []Run `json:"runs"`
}
type Metadata ¶
type Metadata struct {
ChannelMetadataRenderer ChannelMetadataRenderer `json:"channelMetadataRenderer"`
}
type Microformat ¶
type Microformat struct {
MicroformatDataRenderer MicroformatDataRenderer `json:"microformatDataRenderer"`
}
type MicroformatDataRenderer ¶
type MicroformatDataRenderer struct { URLCanonical string `json:"urlCanonical"` Title string `json:"title"` Description string `json:"description"` Thumbnail Thumbnail `json:"thumbnail"` SiteName string `json:"siteName"` AppName string `json:"appName"` AndroidPackage string `json:"androidPackage"` IosAppStoreID string `json:"iosAppStoreId"` IosAppArguments string `json:"iosAppArguments"` OgType string `json:"ogType"` URLApplinksWeb string `json:"urlApplinksWeb"` URLApplinksIos string `json:"urlApplinksIos"` URLApplinksAndroid string `json:"urlApplinksAndroid"` URLTwitterIos string `json:"urlTwitterIos"` URLTwitterAndroid string `json:"urlTwitterAndroid"` TwitterCardType string `json:"twitterCardType"` TwitterSiteHandle string `json:"twitterSiteHandle"` SchemaDotOrgType string `json:"schemaDotOrgType"` Noindex bool `json:"noindex"` Unlisted bool `json:"unlisted"` Tags []string `json:"tags"` LinkAlternates []LinkAlternate `json:"linkAlternates"` }
type NavigationEndpoint ¶
type NavigationEndpoint struct {}
type NextContinuationData ¶
type OnCreateListCommand ¶
type OnCreateListCommand struct { ClickTrackingParams string `json:"clickTrackingParams"` CommandMetadata CommandMetadata `json:"commandMetadata"` CreatePlaylistServiceEndpoint CreatePlaylistServiceEndpoint `json:"createPlaylistServiceEndpoint"` }
type PlaylistEditEndpoint ¶
type PlaylistEditEndpoint struct { PlaylistID string `json:"playlistId"` Actions []PlaylistEditEndpointAction `json:"actions"` }
type PublishedTimeText ¶
type PublishedTimeText struct {
SimpleText string `json:"simpleText"`
}
type RendererText ¶
type RendererText struct { Accessibility Accessibility `json:"accessibility"` SimpleText string `json:"simpleText"` }
type Response ¶
type Response struct { ResponseContext ResponseContext `json:"responseContext"` ContinuationContents ContinuationContents `json:"continuationContents"` Metadata Metadata `json:"metadata"` TrackingParams string `json:"trackingParams"` Microformat Microformat `json:"microformat"` }
type ResponseContext ¶
type ResponseContext struct { ServiceTrackingParams []ServiceTrackingParam `json:"serviceTrackingParams"` MaxAgeSeconds int `json:"maxAgeSeconds"` WebResponseContextExtensionData WebResponseContextExtensionData `json:"webResponseContextExtensionData"` }
type SectionListRenderer ¶
type SectionListRenderer struct {
Contents []SectionListRendererContent `json:"contents"`
}
type SectionListRendererContent ¶
type SectionListRendererContent struct {
ItemSectionRenderer ItemSectionRenderer `json:"itemSectionRenderer"`
}
type ServiceEndpoint ¶
type ServiceEndpoint struct { ClickTrackingParams string `json:"clickTrackingParams"` CommandMetadata CommandMetadata `json:"commandMetadata"` SignalServiceEndpoint SignalServiceEndpoint `json:"signalServiceEndpoint"` }
type ServiceTrackingParam ¶
type ShortViewCountText ¶
type ShortViewCountText struct {
SimpleText string `json:"simpleText"`
}
type SignalServiceEndpoint ¶
type SignalServiceEndpoint struct { Signal string `json:"signal"` Actions []SignalServiceEndpointAction `json:"actions"` }
type SignalServiceEndpointAction ¶
type SignalServiceEndpointAction struct {
AddToPlaylistCommand AddToPlaylistCommand `json:"addToPlaylistCommand"`
}
type Tab ¶
type Tab struct {
TabRenderer TabRenderer `json:"tabRenderer,omitempty"`
}
type TabRenderer ¶
type TabRenderer struct { Title string `json:"title"` Selected bool `json:"selected"` TrackingParams string `json:"trackingParams"` Content TabRendererContent `json:"content"` }
type TabRendererContent ¶
type TabRendererContent struct {
SectionListRenderer SectionListRenderer `json:"sectionListRenderer"`
}
type Thumbnail ¶
type Thumbnail struct {
Thumbnails []ThumbnailItem `json:"thumbnails"`
}
type ThumbnailItem ¶
type ThumbnailOverlay ¶
type ThumbnailOverlay struct { ThumbnailOverlayTimeStatusRenderer ThumbnailOverlayTimeStatusRenderer `json:"thumbnailOverlayTimeStatusRenderer,omitempty"` ThumbnailOverlayToggleButtonRenderer ThumbnailOverlayToggleButtonRenderer `json:"thumbnailOverlayToggleButtonRenderer,omitempty"` ThumbnailOverlayNowPlayingRenderer ThumbnailOverlayNowPlayingRenderer `json:"thumbnailOverlayNowPlayingRenderer,omitempty"` }
type ThumbnailOverlayNowPlayingRenderer ¶
type ThumbnailOverlayNowPlayingRenderer struct {
Text ThumbnailOverlayNowPlayingRendererText `json:"text"`
}
type ThumbnailOverlayNowPlayingRendererText ¶
type ThumbnailOverlayNowPlayingRendererText struct {
Runs []Run `json:"runs"`
}
type ThumbnailOverlayTimeStatusRenderer ¶
type ThumbnailOverlayTimeStatusRenderer struct { Text RendererText `json:"text"` Style string `json:"style"` }
type ThumbnailOverlayToggleButtonRenderer ¶
type ThumbnailOverlayToggleButtonRenderer struct { IsToggled bool `json:"isToggled"` UntoggledIcon UntoggledIcon `json:"untoggledIcon"` ToggledIcon ToggledIcon `json:"toggledIcon"` UntoggledTooltip string `json:"untoggledTooltip"` ToggledTooltip string `json:"toggledTooltip"` UntoggledServiceEndpoint UntoggledServiceEndpoint `json:"untoggledServiceEndpoint"` ToggledServiceEndpoint ToggledServiceEndpoint `json:"toggledServiceEndpoint"` UntoggledAccessibility UntoggledAccessibility `json:"untoggledAccessibility"` ToggledAccessibility ToggledAccessibility `json:"toggledAccessibility"` TrackingParams string `json:"trackingParams"` }
type Title ¶
type Title struct { Accessibility Accessibility `json:"accessibility"` SimpleText string `json:"simpleText"` }
type ToggledAccessibility ¶
type ToggledAccessibility struct {
AccessibilityData AccessibilityData `json:"accessibilityData"`
}
type ToggledIcon ¶
type ToggledIcon struct {
IconType string `json:"iconType"`
}
type ToggledServiceEndpoint ¶
type ToggledServiceEndpoint struct { ClickTrackingParams string `json:"clickTrackingParams"` CommandMetadata CommandMetadata `json:"commandMetadata"` PlaylistEditEndpoint PlaylistEditEndpoint `json:"playlistEditEndpoint"` }
type TwoColumnBrowseResultsRenderer ¶
type TwoColumnBrowseResultsRenderer struct {
Tabs []Tab `json:"tabs"`
}
type URLEndpoint ¶
type URLEndpoint struct {
URL string `json:"url"`
}
type UntoggledAccessibility ¶
type UntoggledAccessibility struct {
AccessibilityData AccessibilityData `json:"accessibilityData"`
}
type UntoggledIcon ¶
type UntoggledIcon struct {
IconType string `json:"iconType"`
}
type UntoggledServiceEndpoint ¶
type UntoggledServiceEndpoint struct { ClickTrackingParams string `json:"clickTrackingParams"` CommandMetadata CommandMetadata `json:"commandMetadata"` PlaylistEditEndpoint PlaylistEditEndpoint `json:"playlistEditEndpoint"` SignalServiceEndpoint SignalServiceEndpoint `json:"signalServiceEndpoint"` }
type ViewCountText ¶
type ViewCountText struct {
SimpleText string `json:"simpleText"`
}
type WatchEndpoint ¶
type WatchEndpoint struct {
VideoID string `json:"videoId"`
}
type WebCommandMetadata ¶
type WebResponseContextExtensionData ¶
type WebResponseContextExtensionData struct { YtConfigData YtConfigData `json:"ytConfigData"` HasDecorated bool `json:"hasDecorated"` }
type YtConfigData ¶
Click to show internal directories.
Click to hide internal directories.