Documentation
¶
Index ¶
- type Episodes
- type QueueJobsQueryInput
- type QueueJobsQueryResult
- type QueueMutation
- type QueueQuery
- type TorrentContent
- type TorrentContentQuery
- type TorrentContentSearchQueryInput
- type TorrentContentSearchResult
- type TorrentFilesQueryInput
- type TorrentMutation
- type TorrentQuery
- func (t TorrentQuery) Files(ctx context.Context, query TorrentFilesQueryInput) (search.TorrentFilesResult, error)
- func (t TorrentQuery) ListSources(ctx context.Context) (gen.TorrentListSourcesResult, error)
- func (t TorrentQuery) Metrics(ctx context.Context, input gen.TorrentMetricsQueryInput) (*gen.TorrentMetricsQueryResult, error)
- func (t TorrentQuery) SuggestTags(ctx context.Context, input *gen.SuggestTagsQueryInput) (search.TorrentSuggestTagsResult, error)
- type TorrentSourceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueJobsQueryInput ¶
type QueueJobsQueryResult ¶
type QueueMutation ¶
func (*QueueMutation) EnqueueReprocessTorrentsBatch ¶
func (m *QueueMutation) EnqueueReprocessTorrentsBatch(ctx context.Context, input manager.EnqueueReprocessTorrentsBatchRequest) (*string, error)
func (*QueueMutation) PurgeJobs ¶
func (m *QueueMutation) PurgeJobs(ctx context.Context, input manager.PurgeJobsRequest) (*string, error)
type QueueQuery ¶
type QueueQuery struct { QueueJobSearch search.QueueJobSearch QueueMetricsClient queuemetrics.Client }
func (QueueQuery) Jobs ¶
func (r QueueQuery) Jobs( ctx context.Context, query QueueJobsQueryInput, ) (QueueJobsQueryResult, error)
func (QueueQuery) Metrics ¶
func (q QueueQuery) Metrics(ctx context.Context, input gen.QueueMetricsQueryInput) (*gen.QueueMetricsQueryResult, error)
type TorrentContent ¶
type TorrentContent struct { ID string InfoHash protocol.ID ContentType model.NullContentType ContentSource model.NullString ContentID model.NullString Title string Languages []model.Language `json:"omitempty"` Episodes *Episodes VideoResolution model.NullVideoResolution VideoSource model.NullVideoSource VideoCodec model.NullVideoCodec Video3D model.NullVideo3D VideoModifier model.NullVideoModifier ReleaseGroup model.NullString SearchString string Seeders model.NullUint Leechers model.NullUint PublishedAt time.Time CreatedAt time.Time UpdatedAt time.Time Torrent model.Torrent Content *model.Content }
func NewTorrentContentFromResultItem ¶
func NewTorrentContentFromResultItem(item search.TorrentContentResultItem) TorrentContent
type TorrentContentQuery ¶ added in v0.3.0
type TorrentContentQuery struct {
TorrentContentSearch search.TorrentContentSearch
}
func (TorrentContentQuery) Search ¶ added in v0.3.0
func (t TorrentContentQuery) Search( ctx context.Context, input TorrentContentSearchQueryInput, ) (TorrentContentSearchResult, error)
type TorrentContentSearchQueryInput ¶
type TorrentContentSearchQueryInput struct { q.SearchParams Facets *gen.TorrentContentFacetsInput OrderBy []gen.TorrentContentOrderByInput InfoHashes graphql.Omittable[[]protocol.ID] }
type TorrentContentSearchResult ¶ added in v0.3.0
type TorrentContentSearchResult struct { TotalCount uint TotalCountIsEstimate bool HasNextPage bool Items []TorrentContent Aggregations gen.TorrentContentAggregations }
type TorrentFilesQueryInput ¶
type TorrentMutation ¶ added in v0.3.0
type TorrentMutation struct{}
type TorrentQuery ¶ added in v0.3.0
type TorrentQuery struct { Dao *dao.Query Search search.Search TorrentMetricsClient torrentmetrics.Client }
func (TorrentQuery) Files ¶
func (t TorrentQuery) Files(ctx context.Context, query TorrentFilesQueryInput) (search.TorrentFilesResult, error)
func (TorrentQuery) ListSources ¶
func (t TorrentQuery) ListSources(ctx context.Context) (gen.TorrentListSourcesResult, error)
func (TorrentQuery) Metrics ¶
func (t TorrentQuery) Metrics(ctx context.Context, input gen.TorrentMetricsQueryInput) (*gen.TorrentMetricsQueryResult, error)
func (TorrentQuery) SuggestTags ¶ added in v0.3.0
func (t TorrentQuery) SuggestTags(ctx context.Context, input *gen.SuggestTagsQueryInput) (search.TorrentSuggestTagsResult, error)
type TorrentSourceInfo ¶
type TorrentSourceInfo struct { Key string Name string ImportID model.NullString Seeders model.NullUint Leechers model.NullUint }
func TorrentSourceInfosFromTorrent ¶
func TorrentSourceInfosFromTorrent(t model.Torrent) []TorrentSourceInfo
Source Files
¶
Click to show internal directories.
Click to hide internal directories.