Documentation
¶
Index ¶
- Constants
- type DownloadOptions
- type DownloadStatus
- type Favourite
- type FavouriteOrigin
- type FavouriteWithOrigin
- type Feed
- type FeedHints
- type FeedItem
- type FeedItemFilter
- type FetchedFeedItem
- type Job
- type JobUpdate
- type LogMessage
- type Metadata
- type OriginType
- type RecentFeedItem
- type Rule
- type RuleAction
- type RuleCondition
- type RuleTarget
- type RuleWithDescription
- type SavedVideo
- type Video
- type VideoRef
- type VideoRefSource
Constants ¶
View Source
const ( YoutubeVideoRefSource = "youtube" AppleDevVideoRefSource = "apple-dev" )
View Source
const ( ManualOriginType = "manual" FeedItemOriginType = "feed-item" )
View Source
const ( FeedTypeYoutubeChannel = "youtube-channel" FeedTypeYoutubePlaylist = "youtube-playlist" FeedTypeAppleDev = "apple-dev" )
View Source
const ( ChronologicalFeedItemOrdering = "pub-desc" AlphabeticalFeedItemOrdering = "title-asc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadOptions ¶
type DownloadOptions struct {
// TargetDir returns the directory the video is to be downloaded to.
TargetDir string
}
type DownloadStatus ¶
type DownloadStatus int
const ( StatusUnknown DownloadStatus = iota StatusNotDownloaded StatusDownloaded StatusMissing )
func (DownloadStatus) String ¶
func (ds DownloadStatus) String() string
type FavouriteOrigin ¶ added in v0.0.8
type FavouriteOrigin struct {
Type OriginType `json:"type"`
ID string `json:"id"`
}
type FavouriteWithOrigin ¶ added in v0.0.8
type Feed ¶
type FeedItemFilter ¶ added in v0.0.5
func ParseFeedItemFilter ¶ added in v0.0.5
func ParseFeedItemFilter(queryString string) FeedItemFilter
type FetchedFeedItem ¶ added in v0.0.10
type FetchedFeedItem struct {
VideoRef VideoRef
Title string
Description string
Link string
Published time.Time
}
FetchedFeedItem is a feed item fetched from a RSS source
type Job ¶
type Job struct {
ID uuid.UUID `storm:"unique"`
CreatedAt time.Time `storm:"index"`
CompletedAt time.Time
Name string
VideoExtID string
VideoTitle string
State jobs.JobState
LastUpdate JobUpdate
Messages []string
Error string
}
func (Job) LastMessage ¶
type LogMessage ¶ added in v0.0.10
type OriginType ¶ added in v0.0.8
type OriginType string
type RecentFeedItem ¶
type Rule ¶ added in v0.0.9
type Rule struct {
ID uuid.UUID `storm:"unique"`
Name string `req:"name"`
Active bool `req:"active,zero"`
Condition RuleCondition `req:"condition"`
Action RuleAction `req:"action"`
}
type RuleAction ¶ added in v0.0.9
type RuleAction struct {
Download bool `req:"download,zero"`
MarkFavourite bool `req:"markFavourite,zero"`
MarkDownloaded bool `req:"markDownloaded,zero"`
}
func (RuleAction) Combine ¶ added in v0.0.9
func (a RuleAction) Combine(b RuleAction) RuleAction
type RuleCondition ¶ added in v0.0.9
type RuleCondition struct {
FeedID uuid.UUID `req:"feedId"`
Title string `req:"title"`
Description string `req:"description"`
}
func (RuleCondition) Matches ¶ added in v0.0.9
func (rs RuleCondition) Matches(target RuleTarget) bool
type RuleTarget ¶ added in v0.0.9
type RuleWithDescription ¶ added in v0.0.9
type SavedVideo ¶
type VideoRef ¶ added in v0.0.8
type VideoRef struct {
Source VideoRefSource `json:"source"`
ID string `json:"id"`
}
func ParseVideoRef ¶ added in v0.0.8
type VideoRefSource ¶ added in v0.0.8
type VideoRefSource string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.