mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Rework project structure
This commit is contained in:
19
pkg/feeds/interfaces.go
Normal file
19
pkg/feeds/interfaces.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user