Documentation
¶
Index ¶
- Variables
- func FlattenChannelDetails(input *ChannelDetails) map[string]interface{}
- func FlattenPlaylistDetails(input *PlaylistDetails) map[string]interface{}
- func FlattenVideoDetails(input *VideoDetails) map[string]interface{}
- func GetChannelAvatar(ctx context.Context, opts base.ServiceOptions, channelID string, w io.Writer) error
- func GetChannelVideoIDs(ctx context.Context, opts base.ServiceOptions, channelID string, ...) error
- func GetPlaylistThumbnail(ctx context.Context, opts base.ServiceOptions, playlistID string, w io.Writer) error
- func GetPlaylistVideoIDs(ctx context.Context, opts base.ServiceOptions, playlistID string, ...) error
- func GetVideo(ctx context.Context, opts base.ServiceOptions, videoID string, w io.Writer) error
- func GetVideoThumbnail(ctx context.Context, opts base.ServiceOptions, videoID string, w io.Writer) error
- func RegisterSeer(server *otohttp.Server, seer Seer)
- type BulkScheduleVideoDownloads
- type CancelVideoDownload
- type ChannelDetails
- type GetBulkChannelsDetailsRequest
- type GetBulkChannelsDetailsResponse
- type GetBulkPlaylistsDetailsRequest
- type GetBulkPlaylistsDetailsResponse
- type GetBulkVideosDetailsRequest
- type GetBulkVideosDetailsResponse
- type GetChannelDetailsRequest
- type GetChannelDetailsResponse
- type GetChannelVideoIDsRequest
- type GetChannelVideoIDsResponse
- type GetPlaylistDetailsRequest
- type GetPlaylistDetailsResponse
- type GetPlaylistVideoIDsRequest
- type GetPlaylistVideoIDsResponse
- type GetVideoDetailsRequest
- type GetVideoDetailsResponse
- type ListCacheRequest
- type ListCacheResponse
- type PlaylistDetails
- type PurgeVideo
- type ScheduleVideoDownload
- type Seer
- type SeerClientOptions
- type VideoDetails
- type VideoDownloads
- type Void
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotCached = errors.New("resource not cached")
Functions ¶
func FlattenChannelDetails ¶
func FlattenChannelDetails(input *ChannelDetails) map[string]interface{}
func FlattenPlaylistDetails ¶
func FlattenPlaylistDetails(input *PlaylistDetails) map[string]interface{}
func FlattenVideoDetails ¶
func FlattenVideoDetails(input *VideoDetails) map[string]interface{}
func GetChannelAvatar ¶
func GetChannelVideoIDs ¶
func GetPlaylistThumbnail ¶
func GetPlaylistVideoIDs ¶
func GetVideoThumbnail ¶
func RegisterSeer ¶
Types ¶
type BulkScheduleVideoDownloads ¶
type BulkScheduleVideoDownloads struct {
VideoIDs []string `json:"videoIDs"`
}
type CancelVideoDownload ¶
type CancelVideoDownload struct {
VideoID string `json:"videoID"`
}
type ChannelDetails ¶
type ChannelDetails struct { ID string `json:"id"` Name string `json:"name"` Avatar string `json:"avatar"` Subs string `json:"subs"` }
func ConvertChannelDetails ¶
func ConvertChannelDetails(input map[string]interface{}) *ChannelDetails
type GetBulkChannelsDetailsRequest ¶
type GetBulkChannelsDetailsRequest struct {
ChannelIDs []string `json:"channelIDs"`
}
type GetBulkChannelsDetailsResponse ¶
type GetBulkChannelsDetailsResponse struct { Channels []*ChannelDetails `json:"channels"` Error string `json:"error,omitempty"` }
type GetBulkPlaylistsDetailsRequest ¶
type GetBulkPlaylistsDetailsRequest struct {
PlaylistIDs []string `json:"playlistIDs"`
}
type GetBulkPlaylistsDetailsResponse ¶
type GetBulkPlaylistsDetailsResponse struct { Playlists []*PlaylistDetails `json:"playlists"` Error string `json:"error,omitempty"` }
type GetBulkVideosDetailsRequest ¶
type GetBulkVideosDetailsRequest struct {
VideoIDs []string `json:"videoIDs"`
}
type GetBulkVideosDetailsResponse ¶
type GetBulkVideosDetailsResponse struct { Videos []*VideoDetails `json:"videos"` Error string `json:"error,omitempty"` }
type GetChannelDetailsResponse ¶
type GetChannelDetailsResponse struct { Details ChannelDetails `json:"details"` Error string `json:"error,omitempty"` }
type GetChannelVideoIDsRequest ¶
type GetChannelVideoIDsRequest struct {
ID string `json:"id"`
}
type GetPlaylistDetailsResponse ¶
type GetPlaylistDetailsResponse struct { Details PlaylistDetails `json:"details"` Error string `json:"error,omitempty"` }
type GetPlaylistVideoIDsRequest ¶
type GetPlaylistVideoIDsRequest struct {
ID string `json:"id"`
}
type GetVideoDetailsRequest ¶
type GetVideoDetailsResponse ¶
type GetVideoDetailsResponse struct { Details VideoDetails `json:"details"` Error string `json:"error,omitempty"` }
type ListCacheRequest ¶
type ListCacheRequest struct {
Marker string `json:"marker"`
}
type ListCacheResponse ¶
type PlaylistDetails ¶
type PlaylistDetails struct { ID string `json:"id"` Title string `json:"title"` Channel string `json:"channel"` ChannelID string `json:"channelID"` NumVideos int `json:"numVideos"` }
func ConvertPlaylistDetails ¶
func ConvertPlaylistDetails(input map[string]interface{}) *PlaylistDetails
type PurgeVideo ¶
type PurgeVideo struct {
ID string `json:"id"`
}
type ScheduleVideoDownload ¶
type ScheduleVideoDownload struct {
VideoID string `json:"videoID"`
}
type Seer ¶
type Seer interface { BulkScheduleVideoDownloads(context.Context, BulkScheduleVideoDownloads) (*Void, error) CancelVideoDownload(context.Context, CancelVideoDownload) (*Void, error) GetBulkChannelsDetails(context.Context, GetBulkChannelsDetailsRequest) (*GetBulkChannelsDetailsResponse, error) GetBulkPlaylistsDetails(context.Context, GetBulkPlaylistsDetailsRequest) (*GetBulkPlaylistsDetailsResponse, error) GetBulkVideosDetails(context.Context, GetBulkVideosDetailsRequest) (*GetBulkVideosDetailsResponse, error) GetChannelDetails(context.Context, GetChannelDetailsRequest) (*GetChannelDetailsResponse, error) GetChannelVideoIDs(context.Context, GetChannelVideoIDsRequest) (*GetChannelVideoIDsResponse, error) GetPlaylistDetails(context.Context, GetPlaylistDetailsRequest) (*GetPlaylistDetailsResponse, error) GetPlaylistVideoIDs(context.Context, GetPlaylistVideoIDsRequest) (*GetPlaylistVideoIDsResponse, error) GetVideoDetails(context.Context, GetVideoDetailsRequest) (*GetVideoDetailsResponse, error) ListCache(context.Context, ListCacheRequest) (*ListCacheResponse, error) ListVideoDownloads(context.Context, Void) (*VideoDownloads, error) PurgeVideo(context.Context, PurgeVideo) (*Void, error) ScheduleVideoDownload(context.Context, ScheduleVideoDownload) (*Void, error) }
func NewSeerClient ¶
func NewSeerClient( endpoint string, options ...*SeerClientOptions, ) Seer
func NewSeerClientFromOptions ¶
func NewSeerClientFromOptions(opts base.ServiceOptions) Seer
type SeerClientOptions ¶
type SeerClientOptions struct {
// contains filtered or unexported fields
}
func NewSeerClientOptions ¶
func NewSeerClientOptions() *SeerClientOptions
func (*SeerClientOptions) SetBasicAuth ¶
func (o *SeerClientOptions) SetBasicAuth(username, password string) *SeerClientOptions
func (*SeerClientOptions) SetTimeout ¶
func (o *SeerClientOptions) SetTimeout(timeout time.Duration) *SeerClientOptions
func (*SeerClientOptions) SetTransport ¶
func (o *SeerClientOptions) SetTransport(transport http.RoundTripper) *SeerClientOptions
type VideoDetails ¶
type VideoDetails struct { ID string `json:"id"` Title string `json:"title"` Description string `json:"description"` Thumbnail string `json:"thumbnail"` UploadDate string `json:"uploadDate"` Uploader string `json:"uploader"` UploaderID string `json:"uploaderID"` Channel string `json:"channel"` ChannelID string `json:"channelID"` Duration int64 `json:"duration"` ViewCount int64 `json:"viewCount"` Width int `json:"width"` Height int `json:"height"` FPS int `json:"fPS"` }
func ConvertVideoDetails ¶
func ConvertVideoDetails(input map[string]interface{}) *VideoDetails
type VideoDownloads ¶
Click to show internal directories.
Click to hide internal directories.