gen

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ContentTypeAgg

type ContentTypeAgg struct {
	Value      *model.ContentType `json:"value,omitempty"`
	Label      string             `json:"label"`
	Count      int                `json:"count"`
	IsEstimate bool               `json:"isEstimate"`
}

type ContentTypeFacetInput

type ContentTypeFacetInput struct {
	Aggregate graphql.Omittable[*bool]                `json:"aggregate,omitempty"`
	Filter    graphql.Omittable[[]*model.ContentType] `json:"filter,omitempty"`
}

type GenreAgg

type GenreAgg struct {
	Value      string `json:"value"`
	Label      string `json:"label"`
	Count      int    `json:"count"`
	IsEstimate bool   `json:"isEstimate"`
}

type GenreFacetInput

type GenreFacetInput struct {
	Aggregate graphql.Omittable[*bool]             `json:"aggregate,omitempty"`
	Logic     graphql.Omittable[*model.FacetLogic] `json:"logic,omitempty"`
	Filter    graphql.Omittable[[]string]          `json:"filter,omitempty"`
}

type HealthCheck

type HealthCheck struct {
	Key       string       `json:"key"`
	Status    HealthStatus `json:"status"`
	Timestamp time.Time    `json:"timestamp"`
	Error     *string      `json:"error,omitempty"`
}

type HealthQuery

type HealthQuery struct {
	Status HealthStatus  `json:"status"`
	Checks []HealthCheck `json:"checks"`
}

type HealthStatus

type HealthStatus string
const (
	HealthStatusUnknown  HealthStatus = "unknown"
	HealthStatusInactive HealthStatus = "inactive"
	HealthStatusUp       HealthStatus = "up"
	HealthStatusDown     HealthStatus = "down"
)

func (HealthStatus) IsValid

func (e HealthStatus) IsValid() bool

func (HealthStatus) MarshalGQL

func (e HealthStatus) MarshalGQL(w io.Writer)

func (HealthStatus) String

func (e HealthStatus) String() string

func (*HealthStatus) UnmarshalGQL

func (e *HealthStatus) UnmarshalGQL(v any) error

type LanguageAgg

type LanguageAgg struct {
	Value      model.Language `json:"value"`
	Label      string         `json:"label"`
	Count      int            `json:"count"`
	IsEstimate bool           `json:"isEstimate"`
}

type LanguageFacetInput

type LanguageFacetInput struct {
	Aggregate graphql.Omittable[*bool]            `json:"aggregate,omitempty"`
	Filter    graphql.Omittable[[]model.Language] `json:"filter,omitempty"`
}

type MetricsBucketDuration

type MetricsBucketDuration string
const (
	MetricsBucketDurationMinute MetricsBucketDuration = "minute"
	MetricsBucketDurationHour   MetricsBucketDuration = "hour"
	MetricsBucketDurationDay    MetricsBucketDuration = "day"
)

func (MetricsBucketDuration) IsValid

func (e MetricsBucketDuration) IsValid() bool

func (MetricsBucketDuration) MarshalGQL

func (e MetricsBucketDuration) MarshalGQL(w io.Writer)

func (MetricsBucketDuration) String

func (e MetricsBucketDuration) String() string

func (*MetricsBucketDuration) UnmarshalGQL

func (e *MetricsBucketDuration) UnmarshalGQL(v any) error

type Mutation added in v0.5.0

type Mutation struct {
}

type Query added in v0.5.0

type Query struct {
}

type QueueJobQueueAgg

type QueueJobQueueAgg struct {
	Value string `json:"value"`
	Label string `json:"label"`
	Count int    `json:"count"`
}

type QueueJobQueueFacetInput

type QueueJobQueueFacetInput struct {
	Aggregate graphql.Omittable[*bool]    `json:"aggregate,omitempty"`
	Filter    graphql.Omittable[[]string] `json:"filter,omitempty"`
}

type QueueJobStatusAgg

type QueueJobStatusAgg struct {
	Value model.QueueJobStatus `json:"value"`
	Label string               `json:"label"`
	Count int                  `json:"count"`
}

type QueueJobStatusFacetInput

type QueueJobStatusFacetInput struct {
	Aggregate graphql.Omittable[*bool]                  `json:"aggregate,omitempty"`
	Filter    graphql.Omittable[[]model.QueueJobStatus] `json:"filter,omitempty"`
}

type QueueJobsAggregations

type QueueJobsAggregations struct {
	Queue  []QueueJobQueueAgg  `json:"queue,omitempty"`
	Status []QueueJobStatusAgg `json:"status,omitempty"`
}

type QueueJobsFacetsInput

type QueueJobsFacetsInput struct {
	Status graphql.Omittable[*QueueJobStatusFacetInput] `json:"status,omitempty"`
	Queue  graphql.Omittable[*QueueJobQueueFacetInput]  `json:"queue,omitempty"`
}

type QueueJobsOrderByField

type QueueJobsOrderByField string
const (
	QueueJobsOrderByFieldCreatedAt QueueJobsOrderByField = "created_at"
	QueueJobsOrderByFieldRanAt     QueueJobsOrderByField = "ran_at"
	QueueJobsOrderByFieldPriority  QueueJobsOrderByField = "priority"
)

func (QueueJobsOrderByField) IsValid

func (e QueueJobsOrderByField) IsValid() bool

func (QueueJobsOrderByField) MarshalGQL

func (e QueueJobsOrderByField) MarshalGQL(w io.Writer)

func (QueueJobsOrderByField) String

func (e QueueJobsOrderByField) String() string

func (*QueueJobsOrderByField) UnmarshalGQL

func (e *QueueJobsOrderByField) UnmarshalGQL(v any) error

type QueueJobsOrderByInput

type QueueJobsOrderByInput struct {
	Field      QueueJobsOrderByField    `json:"field"`
	Descending graphql.Omittable[*bool] `json:"descending,omitempty"`
}

type QueueMetricsQueryInput

type QueueMetricsQueryInput struct {
	BucketDuration MetricsBucketDuration                     `json:"bucketDuration"`
	Statuses       graphql.Omittable[[]model.QueueJobStatus] `json:"statuses,omitempty"`
	Queues         graphql.Omittable[[]string]               `json:"queues,omitempty"`
	StartTime      graphql.Omittable[*time.Time]             `json:"startTime,omitempty"`
	EndTime        graphql.Omittable[*time.Time]             `json:"endTime,omitempty"`
}

type QueueMetricsQueryResult

type QueueMetricsQueryResult struct {
	Buckets []queuemetrics.Bucket `json:"buckets"`
}

type ReleaseYearAgg

type ReleaseYearAgg struct {
	Value      *model.Year `json:"value,omitempty"`
	Label      string      `json:"label"`
	Count      int         `json:"count"`
	IsEstimate bool        `json:"isEstimate"`
}

type ReleaseYearFacetInput

type ReleaseYearFacetInput struct {
	Aggregate graphql.Omittable[*bool]         `json:"aggregate,omitempty"`
	Filter    graphql.Omittable[[]*model.Year] `json:"filter,omitempty"`
}

type SuggestTagsQueryInput added in v0.3.0

type SuggestTagsQueryInput struct {
	Prefix     graphql.Omittable[*string]  `json:"prefix,omitempty"`
	Exclusions graphql.Omittable[[]string] `json:"exclusions,omitempty"`
}

type TorrentContentAggregations

type TorrentContentAggregations struct {
	ContentType     []ContentTypeAgg     `json:"contentType,omitempty"`
	TorrentSource   []TorrentSourceAgg   `json:"torrentSource,omitempty"`
	TorrentTag      []TorrentTagAgg      `json:"torrentTag,omitempty"`
	TorrentFileType []TorrentFileTypeAgg `json:"torrentFileType,omitempty"`
	Language        []LanguageAgg        `json:"language,omitempty"`
	Genre           []GenreAgg           `json:"genre,omitempty"`
	ReleaseYear     []ReleaseYearAgg     `json:"releaseYear,omitempty"`
	VideoResolution []VideoResolutionAgg `json:"videoResolution,omitempty"`
	VideoSource     []VideoSourceAgg     `json:"videoSource,omitempty"`
}

type TorrentContentFacetsInput

type TorrentContentFacetsInput struct {
	ContentType     graphql.Omittable[*ContentTypeFacetInput]     `json:"contentType,omitempty"`
	TorrentSource   graphql.Omittable[*TorrentSourceFacetInput]   `json:"torrentSource,omitempty"`
	TorrentTag      graphql.Omittable[*TorrentTagFacetInput]      `json:"torrentTag,omitempty"`
	TorrentFileType graphql.Omittable[*TorrentFileTypeFacetInput] `json:"torrentFileType,omitempty"`
	Language        graphql.Omittable[*LanguageFacetInput]        `json:"language,omitempty"`
	Genre           graphql.Omittable[*GenreFacetInput]           `json:"genre,omitempty"`
	ReleaseYear     graphql.Omittable[*ReleaseYearFacetInput]     `json:"releaseYear,omitempty"`
	VideoResolution graphql.Omittable[*VideoResolutionFacetInput] `json:"videoResolution,omitempty"`
	VideoSource     graphql.Omittable[*VideoSourceFacetInput]     `json:"videoSource,omitempty"`
}

type TorrentContentOrderByField

type TorrentContentOrderByField string
const (
	TorrentContentOrderByFieldRelevance   TorrentContentOrderByField = "relevance"
	TorrentContentOrderByFieldPublishedAt TorrentContentOrderByField = "published_at"
	TorrentContentOrderByFieldUpdatedAt   TorrentContentOrderByField = "updated_at"
	TorrentContentOrderByFieldSize        TorrentContentOrderByField = "size"
	TorrentContentOrderByFieldFilesCount  TorrentContentOrderByField = "files_count"
	TorrentContentOrderByFieldSeeders     TorrentContentOrderByField = "seeders"
	TorrentContentOrderByFieldLeechers    TorrentContentOrderByField = "leechers"
	TorrentContentOrderByFieldName        TorrentContentOrderByField = "name"
	TorrentContentOrderByFieldInfoHash    TorrentContentOrderByField = "info_hash"
)

func (TorrentContentOrderByField) IsValid

func (e TorrentContentOrderByField) IsValid() bool

func (TorrentContentOrderByField) MarshalGQL

func (e TorrentContentOrderByField) MarshalGQL(w io.Writer)

func (TorrentContentOrderByField) String

func (*TorrentContentOrderByField) UnmarshalGQL

func (e *TorrentContentOrderByField) UnmarshalGQL(v any) error

type TorrentContentOrderByInput added in v0.9.0

type TorrentContentOrderByInput struct {
	Field      TorrentContentOrderByField `json:"field"`
	Descending graphql.Omittable[*bool]   `json:"descending,omitempty"`
}

type TorrentFileTypeAgg

type TorrentFileTypeAgg struct {
	Value      model.FileType `json:"value"`
	Label      string         `json:"label"`
	Count      int            `json:"count"`
	IsEstimate bool           `json:"isEstimate"`
}

type TorrentFileTypeFacetInput

type TorrentFileTypeFacetInput struct {
	Aggregate graphql.Omittable[*bool]             `json:"aggregate,omitempty"`
	Logic     graphql.Omittable[*model.FacetLogic] `json:"logic,omitempty"`
	Filter    graphql.Omittable[[]model.FileType]  `json:"filter,omitempty"`
}

type TorrentFilesOrderByField

type TorrentFilesOrderByField string
const (
	TorrentFilesOrderByFieldIndex     TorrentFilesOrderByField = "index"
	TorrentFilesOrderByFieldPath      TorrentFilesOrderByField = "path"
	TorrentFilesOrderByFieldExtension TorrentFilesOrderByField = "extension"
	TorrentFilesOrderByFieldSize      TorrentFilesOrderByField = "size"
)

func (TorrentFilesOrderByField) IsValid

func (e TorrentFilesOrderByField) IsValid() bool

func (TorrentFilesOrderByField) MarshalGQL

func (e TorrentFilesOrderByField) MarshalGQL(w io.Writer)

func (TorrentFilesOrderByField) String

func (e TorrentFilesOrderByField) String() string

func (*TorrentFilesOrderByField) UnmarshalGQL

func (e *TorrentFilesOrderByField) UnmarshalGQL(v any) error

type TorrentFilesOrderByInput

type TorrentFilesOrderByInput struct {
	Field      TorrentFilesOrderByField `json:"field"`
	Descending graphql.Omittable[*bool] `json:"descending,omitempty"`
}

type TorrentListSourcesResult

type TorrentListSourcesResult struct {
	Sources []model.TorrentSource `json:"sources"`
}

type TorrentMetricsQueryInput

type TorrentMetricsQueryInput struct {
	BucketDuration MetricsBucketDuration         `json:"bucketDuration"`
	Sources        graphql.Omittable[[]string]   `json:"sources,omitempty"`
	StartTime      graphql.Omittable[*time.Time] `json:"startTime,omitempty"`
	EndTime        graphql.Omittable[*time.Time] `json:"endTime,omitempty"`
}

type TorrentMetricsQueryResult

type TorrentMetricsQueryResult struct {
	Buckets []torrentmetrics.Bucket `json:"buckets"`
}

type TorrentSourceAgg

type TorrentSourceAgg struct {
	Value      string `json:"value"`
	Label      string `json:"label"`
	Count      int    `json:"count"`
	IsEstimate bool   `json:"isEstimate"`
}

type TorrentSourceFacetInput

type TorrentSourceFacetInput struct {
	Aggregate graphql.Omittable[*bool]             `json:"aggregate,omitempty"`
	Logic     graphql.Omittable[*model.FacetLogic] `json:"logic,omitempty"`
	Filter    graphql.Omittable[[]string]          `json:"filter,omitempty"`
}

type TorrentTagAgg added in v0.3.0

type TorrentTagAgg struct {
	Value      string `json:"value"`
	Label      string `json:"label"`
	Count      int    `json:"count"`
	IsEstimate bool   `json:"isEstimate"`
}

type TorrentTagFacetInput added in v0.3.0

type TorrentTagFacetInput struct {
	Aggregate graphql.Omittable[*bool]             `json:"aggregate,omitempty"`
	Logic     graphql.Omittable[*model.FacetLogic] `json:"logic,omitempty"`
	Filter    graphql.Omittable[[]string]          `json:"filter,omitempty"`
}

type VideoResolutionAgg

type VideoResolutionAgg struct {
	Value      *model.VideoResolution `json:"value,omitempty"`
	Label      string                 `json:"label"`
	Count      int                    `json:"count"`
	IsEstimate bool                   `json:"isEstimate"`
}

type VideoResolutionFacetInput

type VideoResolutionFacetInput struct {
	Aggregate graphql.Omittable[*bool]                    `json:"aggregate,omitempty"`
	Filter    graphql.Omittable[[]*model.VideoResolution] `json:"filter,omitempty"`
}

type VideoSourceAgg

type VideoSourceAgg struct {
	Value      *model.VideoSource `json:"value,omitempty"`
	Label      string             `json:"label"`
	Count      int                `json:"count"`
	IsEstimate bool               `json:"isEstimate"`
}

type VideoSourceFacetInput

type VideoSourceFacetInput struct {
	Aggregate graphql.Omittable[*bool]                `json:"aggregate,omitempty"`
	Filter    graphql.Omittable[[]*model.VideoSource] `json:"filter,omitempty"`
}

type Worker

type Worker struct {
	Key     string `json:"key"`
	Started bool   `json:"started"`
}

type WorkersListAllQueryResult

type WorkersListAllQueryResult struct {
	Workers []Worker `json:"workers"`
}

type WorkersQuery

type WorkersQuery struct {
	ListAll WorkersListAllQueryResult `json:"listAll"`
}

Jump to

Keyboard shortcuts

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