Documentation
¶
Index ¶
- type AudiobooksClient
- type FeedOpts
- type Option
- type Service
- func (s *Service) GetFeed(ctx context.Context, feedOpts *FeedOpts) (string, error)
- func (s *Service) IsReady(ctx context.Context) bool
- func (s *Service) WriteAllAudiobooksFeed(ctx context.Context, writer io.Writer) error
- func (s *Service) WriteFeed(ctx context.Context, feedOpts *FeedOpts, writer io.Writer) error
- func (s *Service) WriteFeedFromAudiobooks(ctx context.Context, books []audiobooks.Audiobook, feedOpts *FeedOpts, ...) error
- func (s *Service) WriteGenreAudiobookFeed(ctx context.Context, genre audiobooks.Genre, writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudiobooksClient ¶
type AudiobooksClient interface { GetAllAudiobooks(ctx context.Context) ([]audiobooks.Audiobook, error) GetAudiobooksByGenre(ctx context.Context, genre audiobooks.Genre) ([]audiobooks.Audiobook, error) }
type Option ¶
type Option func(s *Service)
func WithHandlePreUnixEpoch ¶
func WithMediaPath ¶
func WithPodcastFeedInfo ¶
type Service ¶
type Service struct { Log loggerrific.Logger AudiobooksClient // contains filtered or unexported fields }
func New ¶
func New(audiobooksClient AudiobooksClient, logger loggerrific.Logger, opts ...Option) *Service
func (*Service) WriteAllAudiobooksFeed ¶
func (*Service) WriteFeedFromAudiobooks ¶
func (*Service) WriteGenreAudiobookFeed ¶ added in v1.7.2
Click to show internal directories.
Click to hide internal directories.