yogai/fetcher/metadata.go

15 lines
272 B
Go
Raw Normal View History

2023-05-10 20:08:45 +02:00
package fetcher
2023-05-27 14:36:22 +02:00
import "ewintr.nl/yogai/model"
2023-05-10 20:08:45 +02:00
type Metadata struct {
Title string
Description string
2023-05-31 16:27:35 +02:00
Duration string
PublishedAt string
2023-05-10 20:08:45 +02:00
}
type MetadataFetcher interface {
2023-05-27 14:36:22 +02:00
FetchMetadata([]model.YoutubeVideoID) (map[model.YoutubeVideoID]Metadata, error)
2023-05-10 20:08:45 +02:00
}