gqlmodel

package
v0.10.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 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 added in v0.10.0

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 added in v0.10.0

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

type QueueMutation added in v0.10.0

type QueueMutation struct {
	QueueManager manager.Manager
}

func (*QueueMutation) EnqueueReprocessTorrentsBatch added in v0.10.0

func (m *QueueMutation) EnqueueReprocessTorrentsBatch(ctx context.Context, input manager.EnqueueReprocessTorrentsBatchRequest) (*string, error)

func (*QueueMutation) PurgeJobs added in v0.10.0

func (m *QueueMutation) PurgeJobs(ctx context.Context, input manager.PurgeJobsRequest) (*string, error)

type QueueQuery added in v0.10.0

type QueueQuery struct {
	QueueJobSearch     search.QueueJobSearch
	QueueMetricsClient queuemetrics.Client
}

func (QueueQuery) Jobs added in v0.10.0

func (QueueQuery) Metrics added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

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 added in v0.10.0

func (TorrentQuery) ListSources added in v0.10.0

func (TorrentQuery) Metrics added in v0.10.0

func (TorrentQuery) SuggestTags added in v0.3.0

type TorrentSourceInfo added in v0.10.0

type TorrentSourceInfo struct {
	Key      string
	Name     string
	ImportID model.NullString
	Seeders  model.NullUint
	Leechers model.NullUint
}

func TorrentSourceInfosFromTorrent added in v0.10.0

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