mediafile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 6 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"
	// FieldRenditionName holds the string denoting the rendition_name field in the database.
	FieldRenditionName = "rendition_name"
	// FieldFormat holds the string denoting the format field in the database.
	FieldFormat = "format"
	// FieldTargetBandwidth holds the string denoting the target_bandwidth field in the database.
	FieldTargetBandwidth = "target_bandwidth"
	// FieldVideoBitrate holds the string denoting the video_bitrate field in the database.
	FieldVideoBitrate = "video_bitrate"
	// FieldResolutionWidth holds the string denoting the resolution_width field in the database.
	FieldResolutionWidth = "resolution_width"
	// FieldResolutionHeight holds the string denoting the resolution_height field in the database.
	FieldResolutionHeight = "resolution_height"
	// FieldFramerate holds the string denoting the framerate field in the database.
	FieldFramerate = "framerate"
	// FieldDurationSeconds holds the string denoting the duration_seconds field in the database.
	FieldDurationSeconds = "duration_seconds"
	// FieldMediaType holds the string denoting the media_type field in the database.
	FieldMediaType = "media_type"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"

	// EdgeMedia holds the string denoting the media edge name in mutations.
	EdgeMedia = "media"

	// Table holds the table name of the mediafile in the database.
	Table = "media_file"
	// MediaTable is the table the holds the media relation/edge.
	MediaTable = "media_file"
	// MediaInverseTable is the table name for the Media entity.
	// It exists in this package in order to avoid circular dependency with the "media" package.
	MediaInverseTable = "media"
	// MediaColumn is the table column denoting the media relation/edge.
	MediaColumn = "media"
)

Variables

View Source
var (
	// RenditionNameValidator is a validator for the "rendition_name" field. It is called by the builders before save.
	RenditionNameValidator func(string) error
	// FormatValidator is a validator for the "format" field. It is called by the builders before save.
	FormatValidator func(string) error
	// DefaultTargetBandwidth holds the default value on creation for the target_bandwidth field.
	DefaultTargetBandwidth uint64
	// VideoBitrateValidator is a validator for the "video_bitrate" field. It is called by the builders before save.
	VideoBitrateValidator func(int64) error
	// ResolutionWidthValidator is a validator for the "resolution_width" field. It is called by the builders before save.
	ResolutionWidthValidator func(uint16) error
	// ResolutionHeightValidator is a validator for the "resolution_height" field. It is called by the builders before save.
	ResolutionHeightValidator func(uint16) error
	// FramerateValidator is a validator for the "framerate" field. It is called by the builders before save.
	FramerateValidator func(uint8) error
	// DurationSecondsValidator is a validator for the "duration_seconds" field. It is called by the builders before save.
	DurationSecondsValidator func(float64) error
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the id field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for mediafile fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the MediaFile type.

Functions

func And

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

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.MediaFile

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MediaFile

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MediaFile

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MediaFile

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MediaFile

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MediaFile

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MediaFile

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DurationSeconds

func DurationSeconds(v float64) predicate.MediaFile

DurationSeconds applies equality check predicate on the "duration_seconds" field. It's identical to DurationSecondsEQ.

func DurationSecondsEQ

func DurationSecondsEQ(v float64) predicate.MediaFile

DurationSecondsEQ applies the EQ predicate on the "duration_seconds" field.

func DurationSecondsGT

func DurationSecondsGT(v float64) predicate.MediaFile

DurationSecondsGT applies the GT predicate on the "duration_seconds" field.

func DurationSecondsGTE

func DurationSecondsGTE(v float64) predicate.MediaFile

DurationSecondsGTE applies the GTE predicate on the "duration_seconds" field.

func DurationSecondsIn

func DurationSecondsIn(vs ...float64) predicate.MediaFile

DurationSecondsIn applies the In predicate on the "duration_seconds" field.

func DurationSecondsLT

func DurationSecondsLT(v float64) predicate.MediaFile

DurationSecondsLT applies the LT predicate on the "duration_seconds" field.

func DurationSecondsLTE

func DurationSecondsLTE(v float64) predicate.MediaFile

DurationSecondsLTE applies the LTE predicate on the "duration_seconds" field.

func DurationSecondsNEQ

func DurationSecondsNEQ(v float64) predicate.MediaFile

DurationSecondsNEQ applies the NEQ predicate on the "duration_seconds" field.

func DurationSecondsNotIn

func DurationSecondsNotIn(vs ...float64) predicate.MediaFile

DurationSecondsNotIn applies the NotIn predicate on the "duration_seconds" 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 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 Framerate

func Framerate(v uint8) predicate.MediaFile

Framerate applies equality check predicate on the "framerate" field. It's identical to FramerateEQ.

func FramerateEQ

func FramerateEQ(v uint8) predicate.MediaFile

FramerateEQ applies the EQ predicate on the "framerate" field.

func FramerateGT

func FramerateGT(v uint8) predicate.MediaFile

FramerateGT applies the GT predicate on the "framerate" field.

func FramerateGTE

func FramerateGTE(v uint8) predicate.MediaFile

FramerateGTE applies the GTE predicate on the "framerate" field.

func FramerateIn

func FramerateIn(vs ...uint8) predicate.MediaFile

FramerateIn applies the In predicate on the "framerate" field.

func FramerateLT

func FramerateLT(v uint8) predicate.MediaFile

FramerateLT applies the LT predicate on the "framerate" field.

func FramerateLTE

func FramerateLTE(v uint8) predicate.MediaFile

FramerateLTE applies the LTE predicate on the "framerate" field.

func FramerateNEQ

func FramerateNEQ(v uint8) predicate.MediaFile

FramerateNEQ applies the NEQ predicate on the "framerate" field.

func FramerateNotIn

func FramerateNotIn(vs ...uint8) predicate.MediaFile

FramerateNotIn applies the NotIn predicate on the "framerate" field.

func HasMedia

func HasMedia() predicate.MediaFile

HasMedia applies the HasEdge predicate on the "media" edge.

func HasMediaWith

func HasMediaWith(preds ...predicate.Media) predicate.MediaFile

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

func ID

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.MediaFile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.MediaFile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.MediaFile

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.MediaFile

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.MediaFile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.MediaFile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.MediaFile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.MediaFile

IDNotIn applies the NotIn predicate on the ID field.

func MediaTypeEQ

func MediaTypeEQ(v MediaType) predicate.MediaFile

MediaTypeEQ applies the EQ predicate on the "media_type" field.

func MediaTypeIn

func MediaTypeIn(vs ...MediaType) predicate.MediaFile

MediaTypeIn applies the In predicate on the "media_type" field.

func MediaTypeNEQ

func MediaTypeNEQ(v MediaType) predicate.MediaFile

MediaTypeNEQ applies the NEQ predicate on the "media_type" field.

func MediaTypeNotIn

func MediaTypeNotIn(vs ...MediaType) predicate.MediaFile

MediaTypeNotIn applies the NotIn predicate on the "media_type" field.

func MediaTypeValidator

func MediaTypeValidator(mt MediaType) error

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

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups list of predicates with the OR operator between them.

func RenditionName

func RenditionName(v string) predicate.MediaFile

RenditionName applies equality check predicate on the "rendition_name" field. It's identical to RenditionNameEQ.

func RenditionNameContains

func RenditionNameContains(v string) predicate.MediaFile

RenditionNameContains applies the Contains predicate on the "rendition_name" field.

func RenditionNameContainsFold

func RenditionNameContainsFold(v string) predicate.MediaFile

RenditionNameContainsFold applies the ContainsFold predicate on the "rendition_name" field.

func RenditionNameEQ

func RenditionNameEQ(v string) predicate.MediaFile

RenditionNameEQ applies the EQ predicate on the "rendition_name" field.

func RenditionNameEqualFold

func RenditionNameEqualFold(v string) predicate.MediaFile

RenditionNameEqualFold applies the EqualFold predicate on the "rendition_name" field.

func RenditionNameGT

func RenditionNameGT(v string) predicate.MediaFile

RenditionNameGT applies the GT predicate on the "rendition_name" field.

func RenditionNameGTE

func RenditionNameGTE(v string) predicate.MediaFile

RenditionNameGTE applies the GTE predicate on the "rendition_name" field.

func RenditionNameHasPrefix

func RenditionNameHasPrefix(v string) predicate.MediaFile

RenditionNameHasPrefix applies the HasPrefix predicate on the "rendition_name" field.

func RenditionNameHasSuffix

func RenditionNameHasSuffix(v string) predicate.MediaFile

RenditionNameHasSuffix applies the HasSuffix predicate on the "rendition_name" field.

func RenditionNameIn

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

RenditionNameIn applies the In predicate on the "rendition_name" field.

func RenditionNameLT

func RenditionNameLT(v string) predicate.MediaFile

RenditionNameLT applies the LT predicate on the "rendition_name" field.

func RenditionNameLTE

func RenditionNameLTE(v string) predicate.MediaFile

RenditionNameLTE applies the LTE predicate on the "rendition_name" field.

func RenditionNameNEQ

func RenditionNameNEQ(v string) predicate.MediaFile

RenditionNameNEQ applies the NEQ predicate on the "rendition_name" field.

func RenditionNameNotIn

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

RenditionNameNotIn applies the NotIn predicate on the "rendition_name" field.

func ResolutionHeight

func ResolutionHeight(v uint16) predicate.MediaFile

ResolutionHeight applies equality check predicate on the "resolution_height" field. It's identical to ResolutionHeightEQ.

func ResolutionHeightEQ

func ResolutionHeightEQ(v uint16) predicate.MediaFile

ResolutionHeightEQ applies the EQ predicate on the "resolution_height" field.

func ResolutionHeightGT

func ResolutionHeightGT(v uint16) predicate.MediaFile

ResolutionHeightGT applies the GT predicate on the "resolution_height" field.

func ResolutionHeightGTE

func ResolutionHeightGTE(v uint16) predicate.MediaFile

ResolutionHeightGTE applies the GTE predicate on the "resolution_height" field.

func ResolutionHeightIn

func ResolutionHeightIn(vs ...uint16) predicate.MediaFile

ResolutionHeightIn applies the In predicate on the "resolution_height" field.

func ResolutionHeightLT

func ResolutionHeightLT(v uint16) predicate.MediaFile

ResolutionHeightLT applies the LT predicate on the "resolution_height" field.

func ResolutionHeightLTE

func ResolutionHeightLTE(v uint16) predicate.MediaFile

ResolutionHeightLTE applies the LTE predicate on the "resolution_height" field.

func ResolutionHeightNEQ

func ResolutionHeightNEQ(v uint16) predicate.MediaFile

ResolutionHeightNEQ applies the NEQ predicate on the "resolution_height" field.

func ResolutionHeightNotIn

func ResolutionHeightNotIn(vs ...uint16) predicate.MediaFile

ResolutionHeightNotIn applies the NotIn predicate on the "resolution_height" field.

func ResolutionWidth

func ResolutionWidth(v uint16) predicate.MediaFile

ResolutionWidth applies equality check predicate on the "resolution_width" field. It's identical to ResolutionWidthEQ.

func ResolutionWidthEQ

func ResolutionWidthEQ(v uint16) predicate.MediaFile

ResolutionWidthEQ applies the EQ predicate on the "resolution_width" field.

func ResolutionWidthGT

func ResolutionWidthGT(v uint16) predicate.MediaFile

ResolutionWidthGT applies the GT predicate on the "resolution_width" field.

func ResolutionWidthGTE

func ResolutionWidthGTE(v uint16) predicate.MediaFile

ResolutionWidthGTE applies the GTE predicate on the "resolution_width" field.

func ResolutionWidthIn

func ResolutionWidthIn(vs ...uint16) predicate.MediaFile

ResolutionWidthIn applies the In predicate on the "resolution_width" field.

func ResolutionWidthLT

func ResolutionWidthLT(v uint16) predicate.MediaFile

ResolutionWidthLT applies the LT predicate on the "resolution_width" field.

func ResolutionWidthLTE

func ResolutionWidthLTE(v uint16) predicate.MediaFile

ResolutionWidthLTE applies the LTE predicate on the "resolution_width" field.

func ResolutionWidthNEQ

func ResolutionWidthNEQ(v uint16) predicate.MediaFile

ResolutionWidthNEQ applies the NEQ predicate on the "resolution_width" field.

func ResolutionWidthNotIn

func ResolutionWidthNotIn(vs ...uint16) predicate.MediaFile

ResolutionWidthNotIn applies the NotIn predicate on the "resolution_width" field.

func TargetBandwidth

func TargetBandwidth(v uint64) predicate.MediaFile

TargetBandwidth applies equality check predicate on the "target_bandwidth" field. It's identical to TargetBandwidthEQ.

func TargetBandwidthEQ

func TargetBandwidthEQ(v uint64) predicate.MediaFile

TargetBandwidthEQ applies the EQ predicate on the "target_bandwidth" field.

func TargetBandwidthGT

func TargetBandwidthGT(v uint64) predicate.MediaFile

TargetBandwidthGT applies the GT predicate on the "target_bandwidth" field.

func TargetBandwidthGTE

func TargetBandwidthGTE(v uint64) predicate.MediaFile

TargetBandwidthGTE applies the GTE predicate on the "target_bandwidth" field.

func TargetBandwidthIn

func TargetBandwidthIn(vs ...uint64) predicate.MediaFile

TargetBandwidthIn applies the In predicate on the "target_bandwidth" field.

func TargetBandwidthLT

func TargetBandwidthLT(v uint64) predicate.MediaFile

TargetBandwidthLT applies the LT predicate on the "target_bandwidth" field.

func TargetBandwidthLTE

func TargetBandwidthLTE(v uint64) predicate.MediaFile

TargetBandwidthLTE applies the LTE predicate on the "target_bandwidth" field.

func TargetBandwidthNEQ

func TargetBandwidthNEQ(v uint64) predicate.MediaFile

TargetBandwidthNEQ applies the NEQ predicate on the "target_bandwidth" field.

func TargetBandwidthNotIn

func TargetBandwidthNotIn(vs ...uint64) predicate.MediaFile

TargetBandwidthNotIn applies the NotIn predicate on the "target_bandwidth" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.MediaFile

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MediaFile

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MediaFile

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MediaFile

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MediaFile

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MediaFile

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MediaFile

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VideoBitrate

func VideoBitrate(v int64) predicate.MediaFile

VideoBitrate applies equality check predicate on the "video_bitrate" field. It's identical to VideoBitrateEQ.

func VideoBitrateEQ

func VideoBitrateEQ(v int64) predicate.MediaFile

VideoBitrateEQ applies the EQ predicate on the "video_bitrate" field.

func VideoBitrateGT

func VideoBitrateGT(v int64) predicate.MediaFile

VideoBitrateGT applies the GT predicate on the "video_bitrate" field.

func VideoBitrateGTE

func VideoBitrateGTE(v int64) predicate.MediaFile

VideoBitrateGTE applies the GTE predicate on the "video_bitrate" field.

func VideoBitrateIn

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

VideoBitrateIn applies the In predicate on the "video_bitrate" field.

func VideoBitrateLT

func VideoBitrateLT(v int64) predicate.MediaFile

VideoBitrateLT applies the LT predicate on the "video_bitrate" field.

func VideoBitrateLTE

func VideoBitrateLTE(v int64) predicate.MediaFile

VideoBitrateLTE applies the LTE predicate on the "video_bitrate" field.

func VideoBitrateNEQ

func VideoBitrateNEQ(v int64) predicate.MediaFile

VideoBitrateNEQ applies the NEQ predicate on the "video_bitrate" field.

func VideoBitrateNotIn

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

VideoBitrateNotIn applies the NotIn predicate on the "video_bitrate" field.

Types

type MediaType

type MediaType string

MediaType defines the type for the media_type enum field.

const (
	MediaTypeAudio MediaType = "audio"
	MediaTypeVideo MediaType = "video"
)

MediaType values.

func (MediaType) String

func (mt MediaType) String() string

Jump to

Keyboard shortcuts

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