Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHound ¶
Types ¶
type ChannelDetails ¶
type ChannelVideo ¶
type ChannelVideo struct { ChannelID string `json:"channelID"` NumVideos int `json:"numVideos"` Video VideoDetails `json:"video"` }
type Hound ¶
type Hound interface { ReportChannelDetails(context.Context, ChannelDetails) (*Void, error) ReportChannelVideo(context.Context, ChannelVideo) (*Void, error) ReportPlaylistDetails(context.Context, PlaylistDetails) (*Void, error) ReportPlaylistVideo(context.Context, PlaylistVideo) (*Void, error) ReportVideoDetails(context.Context, VideoDetails) (*Void, error) ReportVideoDownloadProgress(context.Context, VideoDownloadProgress) (*Void, error) }
func NewHoundClient ¶
func NewHoundClient( endpoint string, options ...*HoundClientOptions, ) Hound
func NewHoundClientFromOptions ¶
func NewHoundClientFromOptions(opts base.ServiceOptions) Hound
type HoundClientOptions ¶
type HoundClientOptions struct {
// contains filtered or unexported fields
}
func NewHoundClientOptions ¶
func NewHoundClientOptions() *HoundClientOptions
func (*HoundClientOptions) SetBasicAuth ¶
func (o *HoundClientOptions) SetBasicAuth(username, password string) *HoundClientOptions
func (*HoundClientOptions) SetTimeout ¶
func (o *HoundClientOptions) SetTimeout(timeout time.Duration) *HoundClientOptions
func (*HoundClientOptions) SetTransport ¶
func (o *HoundClientOptions) SetTransport(transport http.RoundTripper) *HoundClientOptions
type PlaylistDetails ¶
type PlaylistVideo ¶
type PlaylistVideo struct { PlaylistID string `json:"playlistID"` NumVideos int `json:"numVideos"` Video VideoDetails `json:"video"` }
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"` }
type VideoDownloadProgress ¶
Click to show internal directories.
Click to hide internal directories.