Documentation
¶
Index ¶
- Variables
- type Mock
- func (mock *Mock) AvailableMovieOptions() []string
- func (mock *Mock) AvailableShowOptions() []string
- func (mock *Mock) Download(*polochon.Torrent) error
- func (mock *Mock) DownloadSubtitle(v any, entry *polochon.SubtitleEntry, log *logrus.Entry) (*polochon.Subtitle, error)
- func (mock *Mock) GetDetails(i any, log *logrus.Entry) (err error)
- func (mock *Mock) GetMovieList(option string, log *logrus.Entry) ([]*polochon.Movie, error)
- func (mock *Mock) GetMovieWishlist(*logrus.Entry) ([]*polochon.WishedMovie, error)
- func (mock *Mock) GetShowCalendar(*polochon.Show, *logrus.Entry) (*polochon.ShowCalendar, error)
- func (mock *Mock) GetShowList(option string, log *logrus.Entry) ([]*polochon.Show, error)
- func (mock *Mock) GetShowWishlist(*logrus.Entry) ([]*polochon.WishedShow, error)
- func (mock *Mock) GetSubtitle(v any, lang polochon.Language, log *logrus.Entry) (*polochon.Subtitle, error)
- func (mock *Mock) GetTorrents(i any, log *logrus.Entry) error
- func (mock *Mock) Guess(polochon.File, polochon.MovieConfig, polochon.ShowConfig, *logrus.Entry) (polochon.Video, error)
- func (mock *Mock) GuessMetadata(*polochon.File, *logrus.Entry) (*polochon.VideoMetadata, error)
- func (mock *Mock) Init(p []byte) error
- func (mock *Mock) List() ([]*polochon.Torrent, error)
- func (mock *Mock) ListSubtitles(v any, lang polochon.Language, log *logrus.Entry) ([]*polochon.SubtitleEntry, error)
- func (mock *Mock) Name() string
- func (mock *Mock) Notify(any, *logrus.Entry) error
- func (mock *Mock) Remove(*polochon.Torrent) error
- func (mock *Mock) SearchMovie(key string, log *logrus.Entry) ([]*polochon.Movie, error)
- func (mock *Mock) SearchShow(key string, log *logrus.Entry) ([]*polochon.Show, error)
- func (mock *Mock) SearchTorrents(string) ([]*polochon.Torrent, error)
- func (mock *Mock) Status() (polochon.ModuleStatus, error)
- func (mock *Mock) Watch(watchPath string, ctx polochon.FsNotifierCtx, log *logrus.Entry) error
Constants ¶
This section is empty.
Variables ¶
var (
ErrInvalidArgument = errors.New("mock: invalid argument type")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct{}
Mock is a mock module for test purposes
func (*Mock) AvailableMovieOptions ¶
AvailableMovieOptions implements the explorer interface
func (*Mock) AvailableShowOptions ¶
AvailableShowOptions implements the explorer interface
func (*Mock) DownloadSubtitle ¶
func (mock *Mock) DownloadSubtitle(v any, entry *polochon.SubtitleEntry, log *logrus.Entry) (*polochon.Subtitle, error)
DownloadSubtitle implements the Subtitler interface
func (*Mock) GetDetails ¶
GetDetails implements the Detailer interface
func (*Mock) GetMovieList ¶
GetMovieList implements the explorer interface
func (*Mock) GetMovieWishlist ¶
GetMovieWishlist implements the wishlister interface
func (*Mock) GetShowCalendar ¶
GetShowCalendar implements the calendar interface
func (*Mock) GetShowList ¶
GetShowList implements the explorer interface
func (*Mock) GetShowWishlist ¶
GetShowWishlist implements the wishlister interface
func (*Mock) GetSubtitle ¶
func (mock *Mock) GetSubtitle(v any, lang polochon.Language, log *logrus.Entry) (*polochon.Subtitle, error)
GetSubtitle implements the Subtitler interface
func (*Mock) GetTorrents ¶
GetTorrents implements the torrenter interface
func (*Mock) Guess ¶
func (mock *Mock) Guess(polochon.File, polochon.MovieConfig, polochon.ShowConfig, *logrus.Entry) (polochon.Video, error)
Guess implements the guesser interface
func (*Mock) GuessMetadata ¶
GuessMetadata implements the guesser interface
func (*Mock) ListSubtitles ¶
func (mock *Mock) ListSubtitles(v any, lang polochon.Language, log *logrus.Entry) ([]*polochon.SubtitleEntry, error)
ListSubtitles implements the Subtitler interface
func (*Mock) SearchMovie ¶
SearchMovie implements the searcher interface
func (*Mock) SearchShow ¶
SearchShow implements the searcher interface
func (*Mock) SearchTorrents ¶
SearchTorrents implements the torrenter interface