mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
18 lines
359 B
Go
18 lines
359 B
Go
|
//go:generate mockgen -source=deps.go -destination=deps_mock_test.go -package=feed
|
||
|
|
||
|
package feed
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/mxpv/podsync/pkg/model"
|
||
|
)
|
||
|
|
||
|
type feedProvider interface {
|
||
|
GetFeed(ctx context.Context, feedID string) (*model.Feed, error)
|
||
|
}
|
||
|
|
||
|
type urlProvider interface {
|
||
|
URL(ctx context.Context, ns string, fileName string) (string, error)
|
||
|
}
|