Documentation
¶
Index ¶
- type MockPTSiteInter
- func (m *MockPTSiteInter[T]) Context() context.Context
- func (m *MockPTSiteInter[T]) DownloadTorrent(url, title, dir string) (string, error)
- func (m *MockPTSiteInter[T]) EXPECT() *MockPTSiteInterMockRecorder[T]
- func (m *MockPTSiteInter[T]) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[T], error)
- func (m *MockPTSiteInter[T]) IsEnabled() bool
- func (m *MockPTSiteInter[T]) MaxRetries() int
- func (m *MockPTSiteInter[T]) RetryDelay() time.Duration
- func (m *MockPTSiteInter[T]) SendTorrentToQbit(ctx context.Context, rssCfg models.RSSConfig) error
- type MockPTSiteInterMockRecorder
- func (r *MockPTSiteInterMockRecorder[T]) Context() *gomock.Call
- func (r *MockPTSiteInterMockRecorder[T]) DownloadTorrent(url, title, dir interface{}) *gomock.Call
- func (r *MockPTSiteInterMockRecorder[T]) GetTorrentDetails(item interface{}) *gomock.Call
- func (r *MockPTSiteInterMockRecorder[T]) IsEnabled() *gomock.Call
- func (r *MockPTSiteInterMockRecorder[T]) MaxRetries() *gomock.Call
- func (r *MockPTSiteInterMockRecorder[T]) RetryDelay() *gomock.Call
- func (r *MockPTSiteInterMockRecorder[T]) SendTorrentToQbit(ctx, rssCfg interface{}) *gomock.Call
- type QbitMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPTSiteInter ¶
func NewMockPTSiteInter ¶
func NewMockPTSiteInter[T models.ResType](ctrl *gomock.Controller) *MockPTSiteInter[T]
func (*MockPTSiteInter[T]) Context ¶
func (m *MockPTSiteInter[T]) Context() context.Context
func (*MockPTSiteInter[T]) DownloadTorrent ¶
func (m *MockPTSiteInter[T]) DownloadTorrent(url, title, dir string) (string, error)
func (*MockPTSiteInter[T]) EXPECT ¶
func (m *MockPTSiteInter[T]) EXPECT() *MockPTSiteInterMockRecorder[T]
func (*MockPTSiteInter[T]) GetTorrentDetails ¶
func (m *MockPTSiteInter[T]) GetTorrentDetails(item *gofeed.Item) (*models.APIResponse[T], error)
func (*MockPTSiteInter[T]) IsEnabled ¶
func (m *MockPTSiteInter[T]) IsEnabled() bool
func (*MockPTSiteInter[T]) MaxRetries ¶
func (m *MockPTSiteInter[T]) MaxRetries() int
func (*MockPTSiteInter[T]) RetryDelay ¶
func (m *MockPTSiteInter[T]) RetryDelay() time.Duration
func (*MockPTSiteInter[T]) SendTorrentToQbit ¶
type MockPTSiteInterMockRecorder ¶
type MockPTSiteInterMockRecorder[T models.ResType] struct { // contains filtered or unexported fields }
func (*MockPTSiteInterMockRecorder[T]) DownloadTorrent ¶
func (*MockPTSiteInterMockRecorder[T]) GetTorrentDetails ¶
func (*MockPTSiteInterMockRecorder[T]) MaxRetries ¶
func (*MockPTSiteInterMockRecorder[T]) RetryDelay ¶
func (*MockPTSiteInterMockRecorder[T]) SendTorrentToQbit ¶
type QbitMock ¶
type QbitMock struct {
// contains filtered or unexported fields
}
func (*QbitMock) GetActiveDownloadTasks ¶
Click to show internal directories.
Click to hide internal directories.