service

package
v1.14.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type M4BMetadataReader

type M4BMetadataReader interface {
	Read(pathToM4BFile string) (*m4b.Metadata, error)
}

type Option

type Option func(s *Service)

func WithLogger added in v1.13.3

func WithLogger(logger loggerrific.Logger) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(m4bMetadataReader M4BMetadataReader, mediaRoot string, opts ...Option) *Service

func (*Service) GetAllAudiobooks

func (s *Service) GetAllAudiobooks(ctx context.Context) ([]audiobooks.Audiobook, error)

func (*Service) ScanForNewAndUpdatedAudiobooks added in v1.9.1

func (s *Service) ScanForNewAndUpdatedAudiobooks(ctx context.Context, books []audiobooks.Audiobook) ([]audiobooks.Audiobook, bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL