Documentation
¶
Index ¶
- Constants
- type APIConfig
- func (a *APIConfig) DeleteVideos(videos []string) error
- func (a *APIConfig) FetchChannels(status string, cp *SyncProperties) ([]YoutubeChannel, error)
- func (a *APIConfig) MarkVideoStatus(status VideoStatus) error
- func (a *APIConfig) SetChannelCert(certHex string, channelID string) error
- func (a *APIConfig) SetChannelClaimID(channelID string, channelClaimID string) error
- func (a *APIConfig) SetChannelStatus(channelID string, status string, failureReason string, transferState *int) (map[string]SyncedVideo, map[string]bool, error)
- type Fee
- type SyncFlags
- type SyncProperties
- type SyncedVideo
- type VideoStatus
- type YoutubeChannel
Constants ¶
View Source
const ( VideoStatusPublished = "published" VideoStatusUpgradeFailed = "upgradefailed" VideoStatusFailed = "failed" )
View Source
const (
MaxReasonLength = 490
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
func (*APIConfig) DeleteVideos ¶
func (*APIConfig) FetchChannels ¶
func (a *APIConfig) FetchChannels(status string, cp *SyncProperties) ([]YoutubeChannel, error)
func (*APIConfig) MarkVideoStatus ¶
func (a *APIConfig) MarkVideoStatus(status VideoStatus) error
func (*APIConfig) SetChannelCert ¶
func (*APIConfig) SetChannelClaimID ¶
type SyncProperties ¶
type SyncedVideo ¶
type SyncedVideo struct { VideoID string `json:"video_id"` Published bool `json:"published"` FailureReason string `json:"failure_reason"` ClaimName string `json:"claim_name"` ClaimID string `json:"claim_id"` Size int64 `json:"size"` MetadataVersion int8 `json:"metadata_version"` Transferred bool `json:"transferred"` }
type VideoStatus ¶
type YoutubeChannel ¶
type YoutubeChannel struct { ChannelId string `json:"channel_id"` TotalVideos uint `json:"total_videos"` TotalSubscribers uint `json:"total_subscribers"` DesiredChannelName string `json:"desired_channel_name"` Fee *Fee `json:"fee"` ChannelClaimID string `json:"channel_claim_id"` TransferState int `json:"transfer_state"` PublishAddress string `json:"publish_address"` PublicKey string `json:"public_key"` }
Click to show internal directories.
Click to hide internal directories.