1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/pkg/feeds/interfaces.go

20 lines
353 B
Go
Raw Normal View History

2017-08-13 14:50:59 -07:00
package feeds
import (
itunes "github.com/mxpv/podcast"
2017-08-19 16:58:23 -07:00
"github.com/mxpv/podsync/pkg/api"
2017-08-13 14:50:59 -07:00
)
type id interface {
Generate(feed *api.Feed) (string, error)
}
type storage interface {
CreateFeed(feed *api.Feed) error
GetFeed(hashId string) (*api.Feed, error)
}
type builder interface {
Build(feed *api.Feed) (podcast *itunes.Podcast, err error)
}