search

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ContentGenreFacetKey = "content_genre"
View Source
const LanguageFacetKey = "language"
View Source
const ReleaseYearFacetKey = "release_year"
View Source
const TorrentContentTypeFacetKey = "content_type"
View Source
const TorrentFileTypeFacetKey = "file_type"
View Source
const TorrentSourceFacetKey = "torrent_source"
View Source
const Video3dFacetKey = "video_3d"
View Source
const VideoCodecFacetKey = "video_codec"
View Source
const VideoModifierFacetKey = "video_modifier"
View Source
const VideoResolutionFacetKey = "video_resolution"
View Source
const VideoSourceFacetKey = "video_source"

Variables

View Source
var Video3dCriteria = torrentContentAttributeCriteria[model.Video3d](video3dField)
View Source
var VideoResolutionCriteria = torrentContentAttributeCriteria[model.VideoResolution](videoResolutionField)

Functions

func ContentCanonicalIdentifierCriteria

func ContentCanonicalIdentifierCriteria(refs ...model.ContentRef) query.Criteria

func ContentCollectionCriteria

func ContentCollectionCriteria(refs ...model.ContentCollectionRef) query.Criteria

func ContentCoreJoins

func ContentCoreJoins() query.Option

func ContentDefaultHydrate

func ContentDefaultHydrate() query.Option

func ContentDefaultOption

func ContentDefaultOption() query.Option

func ContentIdentifierCriteria

func ContentIdentifierCriteria(refs ...model.ContentRef) query.Criteria

func ContentReleaseDateCriteria

func ContentReleaseDateCriteria(dateRange model.DateRange) query.Criteria

func ContentReleaseDateCriteriaString

func ContentReleaseDateCriteriaString(dateRange string) query.Criteria

func ContentTypeCriteria

func ContentTypeCriteria(types ...model.ContentType) query.Criteria

func HydrateContentCollections

func HydrateContentCollections() query.Option

func HydrateTorrentContentContent

func HydrateTorrentContentContent() query.Option

func HydrateTorrentContentTorrent

func HydrateTorrentContentTorrent() query.Option

func ReleaseYearFacet

func ReleaseYearFacet(options ...query.FacetOption) query.Facet

func TorrentContentCoreJoins

func TorrentContentCoreJoins() query.Option

func TorrentContentDefaultHydrate

func TorrentContentDefaultHydrate() query.Option

func TorrentContentDefaultOption

func TorrentContentDefaultOption() query.Option

func TorrentContentGenreFacet

func TorrentContentGenreFacet(options ...query.FacetOption) query.Facet

func TorrentContentLanguageFacet

func TorrentContentLanguageFacet(options ...query.FacetOption) query.Facet

func TorrentContentTypeCriteria

func TorrentContentTypeCriteria(types ...model.ContentType) query.Criteria

func TorrentContentTypeFacet

func TorrentContentTypeFacet(options ...query.FacetOption) query.Facet

func TorrentDefaultPreload

func TorrentDefaultPreload() query.Option

func TorrentFileExtensionCriteria

func TorrentFileExtensionCriteria(extensions ...string) query.Criteria

func TorrentFileTypeCriteria

func TorrentFileTypeCriteria(fileTypes ...model.FileType) query.Criteria

func TorrentFileTypeFacet

func TorrentFileTypeFacet(options ...query.FacetOption) query.Facet

func TorrentInfoHashCriteria

func TorrentInfoHashCriteria(infoHashes ...model.Hash20) query.Criteria

func TorrentSourceCriteria

func TorrentSourceCriteria(keys ...string) query.Criteria

func TorrentSourceFacet

func TorrentSourceFacet(options ...query.FacetOption) query.Facet

func Video3dFacet

func Video3dFacet(options ...query.FacetOption) query.Facet

func VideoCodecFacet

func VideoCodecFacet(options ...query.FacetOption) query.Facet

func VideoModifierFacet

func VideoModifierFacet(options ...query.FacetOption) query.Facet

func VideoResolutionFacet

func VideoResolutionFacet(options ...query.FacetOption) query.Facet

func VideoSourceFacet

func VideoSourceFacet(options ...query.FacetOption) query.Facet

Types

type ContentResultItem

type ContentResultItem struct {
	query.ResultItem
	model.Content
}

type ContentSearch

type ContentSearch interface {
	Content(ctx context.Context, options ...query.Option) (result ContentResult, err error)
}

type Params

type Params struct {
	fx.In
	Query *dao.Query
}

type Result

type Result struct {
	fx.Out
	Search Search
}

func New

func New(params Params) Result

type TorrentContentResultItem

type TorrentContentResultItem struct {
	query.ResultItem
	model.TorrentContent
}

type TorrentContentSearch

type TorrentContentSearch interface {
	TorrentContent(ctx context.Context, options ...query.Option) (TorrentContentResult, error)
}

type TorrentSearch

type TorrentSearch interface {
	Torrents(ctx context.Context, options ...query.Option) (result TorrentsResult, err error)
}

type TorrentsResult

type TorrentsResult = query.GenericResult[model.Torrent]

Jump to

Keyboard shortcuts

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