mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
20 lines
353 B
Go
20 lines
353 B
Go
package feeds
|
|
|
|
import (
|
|
itunes "github.com/mxpv/podcast"
|
|
"github.com/mxpv/podsync/pkg/api"
|
|
)
|
|
|
|
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)
|
|
}
|