Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryService ¶
type CategoryService service
type ChannelService ¶
type ChannelService service
type Client ¶
type Client struct {
Category *CategoryService
Channel *ChannelService
Comment *CommentService
Playlist *PlaylistService
PlaylistItem *PlaylistItemService
Search *SearchService
Thumbnail *ThumbnailService
Video *VideoService
// contains filtered or unexported fields
}
type CommentService ¶
type CommentService service
type PlaylistItemService ¶
type PlaylistItemService service
type PlaylistService ¶
type PlaylistService service
type SearchParams ¶
type SearchResult ¶
type SearchResult struct {
Kind string `json:"kind,omitempty"`
Etag string `json:"etag,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
RegionCode string `json:"regionCode,omitempty"`
PageInfo *struct {
TotalResults int `json:"totalResults,omitempty"`
ResultsPerPage int `json:"resultsPerPage,omitempty"`
} `json:"pageInfo,omitempty"`
Items []Item `json:"items,omitempty"`
}
type SearchService ¶
type SearchService service
func (*SearchService) Search ¶
func (s *SearchService) Search(q string) (*SearchResult, error)
type Snippet ¶
type Snippet struct {
PublishedAt string `json:"publishedAt,omitempty"`
ChannelID string `json:"channelId,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Thumbnails Thumbnails `json:"thumbnails,omitempty"`
}
type ThumbnailService ¶
type ThumbnailService service
type Thumbnails ¶
type Thumbnails struct {
Default *struct {
URL string `json:"url,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
} `json:"default,omitempty"`
Medium *struct {
URL string `json:"url,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
} `json:"medium,omitempty"`
High *struct {
URL string `json:"url,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
} `json:"high,omitempty"`
}
type VideoService ¶
type VideoService service
Source Files
¶
Click to show internal directories.
Click to hide internal directories.