yogai/fetch/metadata.go

15 lines
277 B
Go
Raw Permalink Normal View History

2023-07-06 13:25:51 +02:00
package fetch
2023-05-10 20:08:45 +02:00
2024-09-17 07:10:35 +02:00
import "go-mod.ewintr.nl/yogai/model"
2023-05-27 14:36:22 +02:00
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
}