Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶ added in v1.0.0
type Container struct {
Feed *FeedService
Episode *EpisodeService
}
Container holds all service instances.
type EpisodeService ¶
type EpisodeService struct {
// contains filtered or unexported fields
}
func NewEpisodeService ¶
func NewEpisodeService(cfg config.Settings, log *slog.Logger, s domain.Store, p ...domain.Platform) *EpisodeService
NewEpisodeService creates a new EpisodeService instance.
func (*EpisodeService) Download ¶
func (s *EpisodeService) Download(ctx context.Context, req domain.DownloadRequest) (*domain.Episode, error)
Download downloads an Episode from the given URL using the appropriate platform.
func (*EpisodeService) Init ¶
func (s *EpisodeService) Init(ctx context.Context) error
Init checks the service dependencies and prepares the environment.
func (*EpisodeService) Validate ¶ added in v1.0.0
func (s *EpisodeService) Validate(ctx context.Context, req domain.DownloadRequest) error
type FeedService ¶
type FeedService struct {
// contains filtered or unexported fields
}
FeedService builds RSS podcast FeedInfo from episodes.
func NewFeedService ¶
NewFeedService creates a new FeedService instance.
func (*FeedService) Build ¶
func (s *FeedService) Build(ctx context.Context) error
Build implements Feeder interface to generate RSS FeedInfo from all episodes and update landing page