gen

package
v0.10.0-beta.4 Latest Latest
Warning

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

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

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

type HealthQuery added in v0.10.0

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

type HealthStatus added in v0.10.0

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

func (HealthStatus) IsValid added in v0.10.0

func (e HealthStatus) IsValid() bool

func (HealthStatus) MarshalGQL added in v0.10.0

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

func (HealthStatus) String added in v0.10.0

func (e HealthStatus) String() string

func (*HealthStatus) UnmarshalGQL added in v0.10.0

func (e *HealthStatus) UnmarshalGQL(v interface{}) 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 added in v0.10.0

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

func (MetricsBucketDuration) IsValid added in v0.10.0

func (e MetricsBucketDuration) IsValid() bool

func (MetricsBucketDuration) MarshalGQL added in v0.10.0

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

func (MetricsBucketDuration) String added in v0.10.0

func (e MetricsBucketDuration) String() string

func (*MetricsBucketDuration) UnmarshalGQL added in v0.10.0

func (e *MetricsBucketDuration) UnmarshalGQL(v interface{}) error

type Mutation added in v0.5.0

type Mutation struct {
}

type Query added in v0.5.0

type Query struct {
}

type QueueJobQueueAgg added in v0.10.0

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

type QueueJobQueueFacetInput added in v0.10.0

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

type QueueJobStatusAgg added in v0.10.0

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

type QueueJobStatusFacetInput added in v0.10.0

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

type QueueJobsAggregations added in v0.10.0

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

type QueueJobsFacetsInput added in v0.10.0

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

type QueueJobsOrderByField added in v0.10.0

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

func (QueueJobsOrderByField) IsValid added in v0.10.0

func (e QueueJobsOrderByField) IsValid() bool

func (QueueJobsOrderByField) MarshalGQL added in v0.10.0

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

func (QueueJobsOrderByField) String added in v0.10.0

func (e QueueJobsOrderByField) String() string

func (*QueueJobsOrderByField) UnmarshalGQL added in v0.10.0

func (e *QueueJobsOrderByField) UnmarshalGQL(v interface{}) error

type QueueJobsOrderByInput added in v0.10.0

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

type QueueMetricsQueryInput added in v0.10.0

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

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

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

func (e TorrentContentOrderByField) IsValid() bool

func (TorrentContentOrderByField) MarshalGQL added in v0.10.0

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

func (TorrentContentOrderByField) String added in v0.10.0

func (*TorrentContentOrderByField) UnmarshalGQL added in v0.10.0

func (e *TorrentContentOrderByField) UnmarshalGQL(v interface{}) 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 added in v0.10.0

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

func (TorrentFilesOrderByField) IsValid added in v0.10.0

func (e TorrentFilesOrderByField) IsValid() bool

func (TorrentFilesOrderByField) MarshalGQL added in v0.10.0

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

func (TorrentFilesOrderByField) String added in v0.10.0

func (e TorrentFilesOrderByField) String() string

func (*TorrentFilesOrderByField) UnmarshalGQL added in v0.10.0

func (e *TorrentFilesOrderByField) UnmarshalGQL(v interface{}) error

type TorrentFilesOrderByInput added in v0.10.0

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

type TorrentListSourcesResult added in v0.10.0

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

type TorrentMetricsQueryInput added in v0.10.0

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

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

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

type WorkersListAllQueryResult added in v0.10.0

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

type WorkersQuery added in v0.10.0

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