mocks

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPTSiteInter

type MockPTSiteInter[T models.ResType] struct {
	// contains filtered or unexported fields
}

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

func (m *MockPTSiteInter[T]) SendTorrentToQbit(ctx context.Context, rssCfg models.RSSConfig) error

type MockPTSiteInterMockRecorder

type MockPTSiteInterMockRecorder[T models.ResType] struct {
	// contains filtered or unexported fields
}

func (*MockPTSiteInterMockRecorder[T]) Context

func (r *MockPTSiteInterMockRecorder[T]) Context() *gomock.Call

func (*MockPTSiteInterMockRecorder[T]) DownloadTorrent

func (r *MockPTSiteInterMockRecorder[T]) DownloadTorrent(url, title, dir interface{}) *gomock.Call

func (*MockPTSiteInterMockRecorder[T]) GetTorrentDetails

func (r *MockPTSiteInterMockRecorder[T]) GetTorrentDetails(item interface{}) *gomock.Call

func (*MockPTSiteInterMockRecorder[T]) IsEnabled

func (r *MockPTSiteInterMockRecorder[T]) IsEnabled() *gomock.Call

func (*MockPTSiteInterMockRecorder[T]) MaxRetries

func (r *MockPTSiteInterMockRecorder[T]) MaxRetries() *gomock.Call

func (*MockPTSiteInterMockRecorder[T]) RetryDelay

func (r *MockPTSiteInterMockRecorder[T]) RetryDelay() *gomock.Call

func (*MockPTSiteInterMockRecorder[T]) SendTorrentToQbit

func (r *MockPTSiteInterMockRecorder[T]) SendTorrentToQbit(ctx, rssCfg interface{}) *gomock.Call

type QbitMock

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

func (*QbitMock) GetActiveDownloadTasks

func (q *QbitMock) GetActiveDownloadTasks(ctx context.Context) (map[string]any, int, error)

func (*QbitMock) ProcessSingleTorrentFile

func (q *QbitMock) ProcessSingleTorrentFile(ctx context.Context, path, category, tags string) error

Jump to

Keyboard shortcuts

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