gqlmodel

package
v0.10.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Episodes

type Episodes struct {
	Label   string
	Seasons []model.Season `json:"omitempty"`
}

type QueueJobsQueryInput

type QueueJobsQueryInput struct {
	Queues      []string
	Statuses    []model.QueueJobStatus
	Limit       model.NullUint
	Page        model.NullUint
	Offset      model.NullUint
	TotalCount  model.NullBool
	HasNextPage model.NullBool
	Facets      *gen.QueueJobsFacetsInput
	OrderBy     []gen.QueueJobsOrderByInput
}

type QueueJobsQueryResult

type QueueJobsQueryResult struct {
	TotalCount   uint
	HasNextPage  bool
	Items        []model.QueueJob
	Aggregations gen.QueueJobsAggregations
}

type QueueMutation

type QueueMutation struct {
	QueueManager manager.Manager
}

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 (QueueQuery) Metrics

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

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 TorrentFilesQueryInput struct {
	InfoHashes  []protocol.ID
	Limit       model.NullUint
	Page        model.NullUint
	Offset      model.NullUint
	TotalCount  model.NullBool
	HasNextPage model.NullBool
	Cached      model.NullBool
	OrderBy     []gen.TorrentFilesOrderByInput
}

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 (TorrentQuery) ListSources

func (TorrentQuery) Metrics

func (TorrentQuery) SuggestTags added in v0.3.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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