2023-07-06 13:25:51 +02:00
|
|
|
package fetch
|
2023-05-10 16:28:45 +02:00
|
|
|
|
2023-05-27 14:36:22 +02:00
|
|
|
import "ewintr.nl/yogai/model"
|
|
|
|
|
2023-05-10 16:28:45 +02:00
|
|
|
type FeedEntry struct {
|
2023-05-27 14:36:22 +02:00
|
|
|
EntryID int64
|
|
|
|
FeedID int64
|
|
|
|
YoutubeChannelID string
|
|
|
|
YoutubeID string
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChannelReader interface {
|
|
|
|
Search(channelID model.YoutubeChannelID, pageToken string) ([]model.YoutubeVideoID, string, error)
|
2023-05-10 16:28:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type FeedReader interface {
|
|
|
|
Unread() ([]FeedEntry, error)
|
|
|
|
MarkRead(feedID int64) error
|
|
|
|
}
|