Documentation
¶
Index ¶
- Constants
- type APIConfig
- func (a *APIConfig) DeleteVideos(videos []string) error
- func (a *APIConfig) FetchChannels(status string, cliFlags *shared.SyncFlags) ([]shared.YoutubeChannel, error)
- func (a *APIConfig) GetReleasedDate(videoID string) (*VideoRelease, error)
- func (a *APIConfig) MarkVideoStatus(status shared.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)
- func (a *APIConfig) VideoState(videoID string) (string, error)
- type SyncedVideo
- type VideoRelease
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 GetAPIsConfigs ¶ added in v5.8.6
func GetAPIsConfigs() *APIConfig
func (*APIConfig) DeleteVideos ¶
func (*APIConfig) FetchChannels ¶
func (*APIConfig) GetReleasedDate ¶ added in v5.6.0
func (a *APIConfig) GetReleasedDate(videoID string) (*VideoRelease, error)
func (*APIConfig) MarkVideoStatus ¶
func (a *APIConfig) MarkVideoStatus(status shared.VideoStatus) error
func (*APIConfig) SetChannelCert ¶
func (*APIConfig) SetChannelClaimID ¶
func (*APIConfig) SetChannelStatus ¶
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"` IsLbryFirst bool `json:"is_lbry_first"` }
Click to show internal directories.
Click to hide internal directories.