mediafile

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the mediafile type in the database.
	Label = "media_file"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldQuality holds the string denoting the quality field in the database.
	FieldQuality = "quality"
	// FieldFormat holds the string denoting the format field in the database.
	FieldFormat = "format"
	// FieldReleaseGroup holds the string denoting the release_group field in the database.
	FieldReleaseGroup = "release_group"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldLastSeenAt holds the string denoting the last_seen_at field in the database.
	FieldLastSeenAt = "last_seen_at"
	// EdgeMovie holds the string denoting the movie edge name in mutations.
	EdgeMovie = "movie"
	// EdgeEpisode holds the string denoting the episode edge name in mutations.
	EdgeEpisode = "episode"
	// Table holds the table name of the mediafile in the database.
	Table = "media_files"
	// MovieTable is the table that holds the movie relation/edge.
	MovieTable = "media_files"
	// MovieInverseTable is the table name for the Movie entity.
	// It exists in this package in order to avoid circular dependency with the "movie" package.
	MovieInverseTable = "movies"
	// MovieColumn is the table column denoting the movie relation/edge.
	MovieColumn = "movie_media_files"
	// EpisodeTable is the table that holds the episode relation/edge.
	EpisodeTable = "media_files"
	// EpisodeInverseTable is the table name for the Episode entity.
	// It exists in this package in order to avoid circular dependency with the "episode" package.
	EpisodeInverseTable = "episodes"
	// EpisodeColumn is the table column denoting the episode relation/edge.
	EpisodeColumn = "episode_media_files"
)
View Source
const DefaultSource = SourceAuto

SourceAuto is the default value of the Source enum.

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// PathValidator is a validator for the "path" field. It is called by the builders before save.
	PathValidator func(string) error
	// DefaultLastSeenAt holds the default value on creation for the "last_seen_at" field.
	DefaultLastSeenAt func() time.Time
)

Columns holds all SQL columns for mediafile fields.

View Source
var ForeignKeys = []string{
	"episode_media_files",
	"movie_media_files",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "media_files" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.MediaFile) predicate.MediaFile

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.MediaFile

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.MediaFile

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.MediaFile

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.MediaFile

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.MediaFile

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.MediaFile

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.MediaFile

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.MediaFile

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.MediaFile

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Format

func Format(v string) predicate.MediaFile

Format applies equality check predicate on the "format" field. It's identical to FormatEQ.

func FormatContains

func FormatContains(v string) predicate.MediaFile

FormatContains applies the Contains predicate on the "format" field.

func FormatContainsFold

func FormatContainsFold(v string) predicate.MediaFile

FormatContainsFold applies the ContainsFold predicate on the "format" field.

func FormatEQ

func FormatEQ(v string) predicate.MediaFile

FormatEQ applies the EQ predicate on the "format" field.

func FormatEqualFold

func FormatEqualFold(v string) predicate.MediaFile

FormatEqualFold applies the EqualFold predicate on the "format" field.

func FormatGT

func FormatGT(v string) predicate.MediaFile

FormatGT applies the GT predicate on the "format" field.

func FormatGTE

func FormatGTE(v string) predicate.MediaFile

FormatGTE applies the GTE predicate on the "format" field.

func FormatHasPrefix

func FormatHasPrefix(v string) predicate.MediaFile

FormatHasPrefix applies the HasPrefix predicate on the "format" field.

func FormatHasSuffix

func FormatHasSuffix(v string) predicate.MediaFile

FormatHasSuffix applies the HasSuffix predicate on the "format" field.

func FormatIn

func FormatIn(vs ...string) predicate.MediaFile

FormatIn applies the In predicate on the "format" field.

func FormatIsNil

func FormatIsNil() predicate.MediaFile

FormatIsNil applies the IsNil predicate on the "format" field.

func FormatLT

func FormatLT(v string) predicate.MediaFile

FormatLT applies the LT predicate on the "format" field.

func FormatLTE

func FormatLTE(v string) predicate.MediaFile

FormatLTE applies the LTE predicate on the "format" field.

func FormatNEQ

func FormatNEQ(v string) predicate.MediaFile

FormatNEQ applies the NEQ predicate on the "format" field.

func FormatNotIn

func FormatNotIn(vs ...string) predicate.MediaFile

FormatNotIn applies the NotIn predicate on the "format" field.

func FormatNotNil

func FormatNotNil() predicate.MediaFile

FormatNotNil applies the NotNil predicate on the "format" field.

func HasEpisode

func HasEpisode() predicate.MediaFile

HasEpisode applies the HasEdge predicate on the "episode" edge.

func HasEpisodeWith

func HasEpisodeWith(preds ...predicate.Episode) predicate.MediaFile

HasEpisodeWith applies the HasEdge predicate on the "episode" edge with a given conditions (other predicates).

func HasMovie

func HasMovie() predicate.MediaFile

HasMovie applies the HasEdge predicate on the "movie" edge.

func HasMovieWith

func HasMovieWith(preds ...predicate.Movie) predicate.MediaFile

HasMovieWith applies the HasEdge predicate on the "movie" edge with a given conditions (other predicates).

func ID

func ID(id uint32) predicate.MediaFile

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.MediaFile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.MediaFile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.MediaFile

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint32) predicate.MediaFile

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.MediaFile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.MediaFile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.MediaFile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) predicate.MediaFile

IDNotIn applies the NotIn predicate on the ID field.

func LastSeenAt

func LastSeenAt(v time.Time) predicate.MediaFile

LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.

func LastSeenAtEQ

func LastSeenAtEQ(v time.Time) predicate.MediaFile

LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.

func LastSeenAtGT

func LastSeenAtGT(v time.Time) predicate.MediaFile

LastSeenAtGT applies the GT predicate on the "last_seen_at" field.

func LastSeenAtGTE

func LastSeenAtGTE(v time.Time) predicate.MediaFile

LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.

func LastSeenAtIn

func LastSeenAtIn(vs ...time.Time) predicate.MediaFile

LastSeenAtIn applies the In predicate on the "last_seen_at" field.

func LastSeenAtIsNil

func LastSeenAtIsNil() predicate.MediaFile

LastSeenAtIsNil applies the IsNil predicate on the "last_seen_at" field.

func LastSeenAtLT

func LastSeenAtLT(v time.Time) predicate.MediaFile

LastSeenAtLT applies the LT predicate on the "last_seen_at" field.

func LastSeenAtLTE

func LastSeenAtLTE(v time.Time) predicate.MediaFile

LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.

func LastSeenAtNEQ

func LastSeenAtNEQ(v time.Time) predicate.MediaFile

LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.

func LastSeenAtNotIn

func LastSeenAtNotIn(vs ...time.Time) predicate.MediaFile

LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.

func LastSeenAtNotNil

func LastSeenAtNotNil() predicate.MediaFile

LastSeenAtNotNil applies the NotNil predicate on the "last_seen_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.MediaFile) predicate.MediaFile

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.MediaFile

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.MediaFile

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.MediaFile

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.MediaFile

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.MediaFile

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.MediaFile

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.MediaFile

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.MediaFile

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.MediaFile

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.MediaFile

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.MediaFile

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.MediaFile

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.MediaFile

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.MediaFile

PathNotIn applies the NotIn predicate on the "path" field.

func Quality

func Quality(v string) predicate.MediaFile

Quality applies equality check predicate on the "quality" field. It's identical to QualityEQ.

func QualityContains

func QualityContains(v string) predicate.MediaFile

QualityContains applies the Contains predicate on the "quality" field.

func QualityContainsFold

func QualityContainsFold(v string) predicate.MediaFile

QualityContainsFold applies the ContainsFold predicate on the "quality" field.

func QualityEQ

func QualityEQ(v string) predicate.MediaFile

QualityEQ applies the EQ predicate on the "quality" field.

func QualityEqualFold

func QualityEqualFold(v string) predicate.MediaFile

QualityEqualFold applies the EqualFold predicate on the "quality" field.

func QualityGT

func QualityGT(v string) predicate.MediaFile

QualityGT applies the GT predicate on the "quality" field.

func QualityGTE

func QualityGTE(v string) predicate.MediaFile

QualityGTE applies the GTE predicate on the "quality" field.

func QualityHasPrefix

func QualityHasPrefix(v string) predicate.MediaFile

QualityHasPrefix applies the HasPrefix predicate on the "quality" field.

func QualityHasSuffix

func QualityHasSuffix(v string) predicate.MediaFile

QualityHasSuffix applies the HasSuffix predicate on the "quality" field.

func QualityIn

func QualityIn(vs ...string) predicate.MediaFile

QualityIn applies the In predicate on the "quality" field.

func QualityIsNil

func QualityIsNil() predicate.MediaFile

QualityIsNil applies the IsNil predicate on the "quality" field.

func QualityLT

func QualityLT(v string) predicate.MediaFile

QualityLT applies the LT predicate on the "quality" field.

func QualityLTE

func QualityLTE(v string) predicate.MediaFile

QualityLTE applies the LTE predicate on the "quality" field.

func QualityNEQ

func QualityNEQ(v string) predicate.MediaFile

QualityNEQ applies the NEQ predicate on the "quality" field.

func QualityNotIn

func QualityNotIn(vs ...string) predicate.MediaFile

QualityNotIn applies the NotIn predicate on the "quality" field.

func QualityNotNil

func QualityNotNil() predicate.MediaFile

QualityNotNil applies the NotNil predicate on the "quality" field.

func ReleaseGroup

func ReleaseGroup(v string) predicate.MediaFile

ReleaseGroup applies equality check predicate on the "release_group" field. It's identical to ReleaseGroupEQ.

func ReleaseGroupContains

func ReleaseGroupContains(v string) predicate.MediaFile

ReleaseGroupContains applies the Contains predicate on the "release_group" field.

func ReleaseGroupContainsFold

func ReleaseGroupContainsFold(v string) predicate.MediaFile

ReleaseGroupContainsFold applies the ContainsFold predicate on the "release_group" field.

func ReleaseGroupEQ

func ReleaseGroupEQ(v string) predicate.MediaFile

ReleaseGroupEQ applies the EQ predicate on the "release_group" field.

func ReleaseGroupEqualFold

func ReleaseGroupEqualFold(v string) predicate.MediaFile

ReleaseGroupEqualFold applies the EqualFold predicate on the "release_group" field.

func ReleaseGroupGT

func ReleaseGroupGT(v string) predicate.MediaFile

ReleaseGroupGT applies the GT predicate on the "release_group" field.

func ReleaseGroupGTE

func ReleaseGroupGTE(v string) predicate.MediaFile

ReleaseGroupGTE applies the GTE predicate on the "release_group" field.

func ReleaseGroupHasPrefix

func ReleaseGroupHasPrefix(v string) predicate.MediaFile

ReleaseGroupHasPrefix applies the HasPrefix predicate on the "release_group" field.

func ReleaseGroupHasSuffix

func ReleaseGroupHasSuffix(v string) predicate.MediaFile

ReleaseGroupHasSuffix applies the HasSuffix predicate on the "release_group" field.

func ReleaseGroupIn

func ReleaseGroupIn(vs ...string) predicate.MediaFile

ReleaseGroupIn applies the In predicate on the "release_group" field.

func ReleaseGroupIsNil

func ReleaseGroupIsNil() predicate.MediaFile

ReleaseGroupIsNil applies the IsNil predicate on the "release_group" field.

func ReleaseGroupLT

func ReleaseGroupLT(v string) predicate.MediaFile

ReleaseGroupLT applies the LT predicate on the "release_group" field.

func ReleaseGroupLTE

func ReleaseGroupLTE(v string) predicate.MediaFile

ReleaseGroupLTE applies the LTE predicate on the "release_group" field.

func ReleaseGroupNEQ

func ReleaseGroupNEQ(v string) predicate.MediaFile

ReleaseGroupNEQ applies the NEQ predicate on the "release_group" field.

func ReleaseGroupNotIn

func ReleaseGroupNotIn(vs ...string) predicate.MediaFile

ReleaseGroupNotIn applies the NotIn predicate on the "release_group" field.

func ReleaseGroupNotNil

func ReleaseGroupNotNil() predicate.MediaFile

ReleaseGroupNotNil applies the NotNil predicate on the "release_group" field.

func Size

func Size(v int64) predicate.MediaFile

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ

func SizeEQ(v int64) predicate.MediaFile

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT

func SizeGT(v int64) predicate.MediaFile

SizeGT applies the GT predicate on the "size" field.

func SizeGTE

func SizeGTE(v int64) predicate.MediaFile

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn

func SizeIn(vs ...int64) predicate.MediaFile

SizeIn applies the In predicate on the "size" field.

func SizeLT

func SizeLT(v int64) predicate.MediaFile

SizeLT applies the LT predicate on the "size" field.

func SizeLTE

func SizeLTE(v int64) predicate.MediaFile

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ

func SizeNEQ(v int64) predicate.MediaFile

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn

func SizeNotIn(vs ...int64) predicate.MediaFile

SizeNotIn applies the NotIn predicate on the "size" field.

func SourceEQ

func SourceEQ(v Source) predicate.MediaFile

SourceEQ applies the EQ predicate on the "source" field.

func SourceIn

func SourceIn(vs ...Source) predicate.MediaFile

SourceIn applies the In predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v Source) predicate.MediaFile

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...Source) predicate.MediaFile

SourceNotIn applies the NotIn predicate on the "source" field.

func SourceValidator

func SourceValidator(s Source) error

SourceValidator is a validator for the "source" field enum values. It is called by the builders before save.

func UpdateTime

func UpdateTime(v time.Time) predicate.MediaFile

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.MediaFile

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.MediaFile

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.MediaFile

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.MediaFile

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.MediaFile

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.MediaFile

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.MediaFile

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.MediaFile

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the MediaFile queries.

func ByCreateTime

func ByCreateTime(opts ...sql.OrderTermOption) OrderOption

ByCreateTime orders the results by the create_time field.

func ByEpisodeField

func ByEpisodeField(field string, opts ...sql.OrderTermOption) OrderOption

ByEpisodeField orders the results by episode field.

func ByFormat

func ByFormat(opts ...sql.OrderTermOption) OrderOption

ByFormat orders the results by the format field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLastSeenAt

func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption

ByLastSeenAt orders the results by the last_seen_at field.

func ByMovieField

func ByMovieField(field string, opts ...sql.OrderTermOption) OrderOption

ByMovieField orders the results by movie field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func ByQuality

func ByQuality(opts ...sql.OrderTermOption) OrderOption

ByQuality orders the results by the quality field.

func ByReleaseGroup

func ByReleaseGroup(opts ...sql.OrderTermOption) OrderOption

ByReleaseGroup orders the results by the release_group field.

func BySize

func BySize(opts ...sql.OrderTermOption) OrderOption

BySize orders the results by the size field.

func BySource

func BySource(opts ...sql.OrderTermOption) OrderOption

BySource orders the results by the source field.

func ByUpdateTime

func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption

ByUpdateTime orders the results by the update_time field.

type Source

type Source string

Source defines the type for the "source" enum field.

const (
	SourceWizard Source = "wizard"
	SourceOrphan Source = "orphan"
	SourceAuto   Source = "auto"
)

Source values.

func (Source) String

func (s Source) String() string

Jump to

Keyboard shortcuts

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