Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MediaFile) predicate.MediaFile
- func CreatedAt(v time.Time) predicate.MediaFile
- func CreatedAtEQ(v time.Time) predicate.MediaFile
- func CreatedAtGT(v time.Time) predicate.MediaFile
- func CreatedAtGTE(v time.Time) predicate.MediaFile
- func CreatedAtIn(vs ...time.Time) predicate.MediaFile
- func CreatedAtLT(v time.Time) predicate.MediaFile
- func CreatedAtLTE(v time.Time) predicate.MediaFile
- func CreatedAtNEQ(v time.Time) predicate.MediaFile
- func CreatedAtNotIn(vs ...time.Time) predicate.MediaFile
- func DurationSeconds(v float64) predicate.MediaFile
- func DurationSecondsEQ(v float64) predicate.MediaFile
- func DurationSecondsGT(v float64) predicate.MediaFile
- func DurationSecondsGTE(v float64) predicate.MediaFile
- func DurationSecondsIn(vs ...float64) predicate.MediaFile
- func DurationSecondsLT(v float64) predicate.MediaFile
- func DurationSecondsLTE(v float64) predicate.MediaFile
- func DurationSecondsNEQ(v float64) predicate.MediaFile
- func DurationSecondsNotIn(vs ...float64) predicate.MediaFile
- func Format(v string) predicate.MediaFile
- func FormatContains(v string) predicate.MediaFile
- func FormatContainsFold(v string) predicate.MediaFile
- func FormatEQ(v string) predicate.MediaFile
- func FormatEqualFold(v string) predicate.MediaFile
- func FormatGT(v string) predicate.MediaFile
- func FormatGTE(v string) predicate.MediaFile
- func FormatHasPrefix(v string) predicate.MediaFile
- func FormatHasSuffix(v string) predicate.MediaFile
- func FormatIn(vs ...string) predicate.MediaFile
- func FormatLT(v string) predicate.MediaFile
- func FormatLTE(v string) predicate.MediaFile
- func FormatNEQ(v string) predicate.MediaFile
- func FormatNotIn(vs ...string) predicate.MediaFile
- func Framerate(v uint8) predicate.MediaFile
- func FramerateEQ(v uint8) predicate.MediaFile
- func FramerateGT(v uint8) predicate.MediaFile
- func FramerateGTE(v uint8) predicate.MediaFile
- func FramerateIn(vs ...uint8) predicate.MediaFile
- func FramerateLT(v uint8) predicate.MediaFile
- func FramerateLTE(v uint8) predicate.MediaFile
- func FramerateNEQ(v uint8) predicate.MediaFile
- func FramerateNotIn(vs ...uint8) predicate.MediaFile
- func HasMedia() predicate.MediaFile
- func HasMediaWith(preds ...predicate.Media) predicate.MediaFile
- func ID(id uuid.UUID) predicate.MediaFile
- func IDEQ(id uuid.UUID) predicate.MediaFile
- func IDGT(id uuid.UUID) predicate.MediaFile
- func IDGTE(id uuid.UUID) predicate.MediaFile
- func IDIn(ids ...uuid.UUID) predicate.MediaFile
- func IDLT(id uuid.UUID) predicate.MediaFile
- func IDLTE(id uuid.UUID) predicate.MediaFile
- func IDNEQ(id uuid.UUID) predicate.MediaFile
- func IDNotIn(ids ...uuid.UUID) predicate.MediaFile
- func MediaTypeEQ(v MediaType) predicate.MediaFile
- func MediaTypeIn(vs ...MediaType) predicate.MediaFile
- func MediaTypeNEQ(v MediaType) predicate.MediaFile
- func MediaTypeNotIn(vs ...MediaType) predicate.MediaFile
- func MediaTypeValidator(mt MediaType) error
- func Not(p predicate.MediaFile) predicate.MediaFile
- func Or(predicates ...predicate.MediaFile) predicate.MediaFile
- func RenditionName(v string) predicate.MediaFile
- func RenditionNameContains(v string) predicate.MediaFile
- func RenditionNameContainsFold(v string) predicate.MediaFile
- func RenditionNameEQ(v string) predicate.MediaFile
- func RenditionNameEqualFold(v string) predicate.MediaFile
- func RenditionNameGT(v string) predicate.MediaFile
- func RenditionNameGTE(v string) predicate.MediaFile
- func RenditionNameHasPrefix(v string) predicate.MediaFile
- func RenditionNameHasSuffix(v string) predicate.MediaFile
- func RenditionNameIn(vs ...string) predicate.MediaFile
- func RenditionNameLT(v string) predicate.MediaFile
- func RenditionNameLTE(v string) predicate.MediaFile
- func RenditionNameNEQ(v string) predicate.MediaFile
- func RenditionNameNotIn(vs ...string) predicate.MediaFile
- func ResolutionHeight(v uint16) predicate.MediaFile
- func ResolutionHeightEQ(v uint16) predicate.MediaFile
- func ResolutionHeightGT(v uint16) predicate.MediaFile
- func ResolutionHeightGTE(v uint16) predicate.MediaFile
- func ResolutionHeightIn(vs ...uint16) predicate.MediaFile
- func ResolutionHeightLT(v uint16) predicate.MediaFile
- func ResolutionHeightLTE(v uint16) predicate.MediaFile
- func ResolutionHeightNEQ(v uint16) predicate.MediaFile
- func ResolutionHeightNotIn(vs ...uint16) predicate.MediaFile
- func ResolutionWidth(v uint16) predicate.MediaFile
- func ResolutionWidthEQ(v uint16) predicate.MediaFile
- func ResolutionWidthGT(v uint16) predicate.MediaFile
- func ResolutionWidthGTE(v uint16) predicate.MediaFile
- func ResolutionWidthIn(vs ...uint16) predicate.MediaFile
- func ResolutionWidthLT(v uint16) predicate.MediaFile
- func ResolutionWidthLTE(v uint16) predicate.MediaFile
- func ResolutionWidthNEQ(v uint16) predicate.MediaFile
- func ResolutionWidthNotIn(vs ...uint16) predicate.MediaFile
- func TargetBandwidth(v uint64) predicate.MediaFile
- func TargetBandwidthEQ(v uint64) predicate.MediaFile
- func TargetBandwidthGT(v uint64) predicate.MediaFile
- func TargetBandwidthGTE(v uint64) predicate.MediaFile
- func TargetBandwidthIn(vs ...uint64) predicate.MediaFile
- func TargetBandwidthLT(v uint64) predicate.MediaFile
- func TargetBandwidthLTE(v uint64) predicate.MediaFile
- func TargetBandwidthNEQ(v uint64) predicate.MediaFile
- func TargetBandwidthNotIn(vs ...uint64) predicate.MediaFile
- func UpdatedAt(v time.Time) predicate.MediaFile
- func UpdatedAtEQ(v time.Time) predicate.MediaFile
- func UpdatedAtGT(v time.Time) predicate.MediaFile
- func UpdatedAtGTE(v time.Time) predicate.MediaFile
- func UpdatedAtIn(vs ...time.Time) predicate.MediaFile
- func UpdatedAtLT(v time.Time) predicate.MediaFile
- func UpdatedAtLTE(v time.Time) predicate.MediaFile
- func UpdatedAtNEQ(v time.Time) predicate.MediaFile
- func UpdatedAtNotIn(vs ...time.Time) predicate.MediaFile
- func ValidColumn(column string) bool
- func VideoBitrate(v int64) predicate.MediaFile
- func VideoBitrateEQ(v int64) predicate.MediaFile
- func VideoBitrateGT(v int64) predicate.MediaFile
- func VideoBitrateGTE(v int64) predicate.MediaFile
- func VideoBitrateIn(vs ...int64) predicate.MediaFile
- func VideoBitrateLT(v int64) predicate.MediaFile
- func VideoBitrateLTE(v int64) predicate.MediaFile
- func VideoBitrateNEQ(v int64) predicate.MediaFile
- func VideoBitrateNotIn(vs ...int64) predicate.MediaFile
- type MediaType
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldRenditionName, FieldFormat, FieldTargetBandwidth, FieldVideoBitrate, FieldResolutionWidth, FieldResolutionHeight, FieldFramerate, FieldDurationSeconds, FieldMediaType, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for mediafile fields.
var ForeignKeys = []string{
"media",
}
ForeignKeys holds the SQL foreign-keys that are owned by the MediaFile type.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DurationSeconds ¶
DurationSeconds applies equality check predicate on the "duration_seconds" field. It's identical to DurationSecondsEQ.
func DurationSecondsEQ ¶
DurationSecondsEQ applies the EQ predicate on the "duration_seconds" field.
func DurationSecondsGT ¶
DurationSecondsGT applies the GT predicate on the "duration_seconds" field.
func DurationSecondsGTE ¶
DurationSecondsGTE applies the GTE predicate on the "duration_seconds" field.
func DurationSecondsIn ¶
DurationSecondsIn applies the In predicate on the "duration_seconds" field.
func DurationSecondsLT ¶
DurationSecondsLT applies the LT predicate on the "duration_seconds" field.
func DurationSecondsLTE ¶
DurationSecondsLTE applies the LTE predicate on the "duration_seconds" field.
func DurationSecondsNEQ ¶
DurationSecondsNEQ applies the NEQ predicate on the "duration_seconds" field.
func DurationSecondsNotIn ¶
DurationSecondsNotIn applies the NotIn predicate on the "duration_seconds" field.
func Format ¶
Format applies equality check predicate on the "format" field. It's identical to FormatEQ.
func FormatContains ¶
FormatContains applies the Contains predicate on the "format" field.
func FormatContainsFold ¶
FormatContainsFold applies the ContainsFold predicate on the "format" field.
func FormatEqualFold ¶
FormatEqualFold applies the EqualFold predicate on the "format" field.
func FormatHasPrefix ¶
FormatHasPrefix applies the HasPrefix predicate on the "format" field.
func FormatHasSuffix ¶
FormatHasSuffix applies the HasSuffix predicate on the "format" field.
func FormatNotIn ¶
FormatNotIn applies the NotIn predicate on the "format" field.
func Framerate ¶
Framerate applies equality check predicate on the "framerate" field. It's identical to FramerateEQ.
func FramerateEQ ¶
FramerateEQ applies the EQ predicate on the "framerate" field.
func FramerateGT ¶
FramerateGT applies the GT predicate on the "framerate" field.
func FramerateGTE ¶
FramerateGTE applies the GTE predicate on the "framerate" field.
func FramerateIn ¶
FramerateIn applies the In predicate on the "framerate" field.
func FramerateLT ¶
FramerateLT applies the LT predicate on the "framerate" field.
func FramerateLTE ¶
FramerateLTE applies the LTE predicate on the "framerate" field.
func FramerateNEQ ¶
FramerateNEQ applies the NEQ predicate on the "framerate" field.
func FramerateNotIn ¶
FramerateNotIn applies the NotIn predicate on the "framerate" field.
func HasMediaWith ¶
HasMediaWith applies the HasEdge predicate on the "media" edge with a given conditions (other predicates).
func MediaTypeEQ ¶
MediaTypeEQ applies the EQ predicate on the "media_type" field.
func MediaTypeIn ¶
MediaTypeIn applies the In predicate on the "media_type" field.
func MediaTypeNEQ ¶
MediaTypeNEQ applies the NEQ predicate on the "media_type" field.
func MediaTypeNotIn ¶
MediaTypeNotIn applies the NotIn predicate on the "media_type" field.
func MediaTypeValidator ¶
MediaTypeValidator is a validator for the "media_type" field enum values. It is called by the builders before save.
func RenditionName ¶
RenditionName applies equality check predicate on the "rendition_name" field. It's identical to RenditionNameEQ.
func RenditionNameContains ¶
RenditionNameContains applies the Contains predicate on the "rendition_name" field.
func RenditionNameContainsFold ¶
RenditionNameContainsFold applies the ContainsFold predicate on the "rendition_name" field.
func RenditionNameEQ ¶
RenditionNameEQ applies the EQ predicate on the "rendition_name" field.
func RenditionNameEqualFold ¶
RenditionNameEqualFold applies the EqualFold predicate on the "rendition_name" field.
func RenditionNameGT ¶
RenditionNameGT applies the GT predicate on the "rendition_name" field.
func RenditionNameGTE ¶
RenditionNameGTE applies the GTE predicate on the "rendition_name" field.
func RenditionNameHasPrefix ¶
RenditionNameHasPrefix applies the HasPrefix predicate on the "rendition_name" field.
func RenditionNameHasSuffix ¶
RenditionNameHasSuffix applies the HasSuffix predicate on the "rendition_name" field.
func RenditionNameIn ¶
RenditionNameIn applies the In predicate on the "rendition_name" field.
func RenditionNameLT ¶
RenditionNameLT applies the LT predicate on the "rendition_name" field.
func RenditionNameLTE ¶
RenditionNameLTE applies the LTE predicate on the "rendition_name" field.
func RenditionNameNEQ ¶
RenditionNameNEQ applies the NEQ predicate on the "rendition_name" field.
func RenditionNameNotIn ¶
RenditionNameNotIn applies the NotIn predicate on the "rendition_name" field.
func ResolutionHeight ¶
ResolutionHeight applies equality check predicate on the "resolution_height" field. It's identical to ResolutionHeightEQ.
func ResolutionHeightEQ ¶
ResolutionHeightEQ applies the EQ predicate on the "resolution_height" field.
func ResolutionHeightGT ¶
ResolutionHeightGT applies the GT predicate on the "resolution_height" field.
func ResolutionHeightGTE ¶
ResolutionHeightGTE applies the GTE predicate on the "resolution_height" field.
func ResolutionHeightIn ¶
ResolutionHeightIn applies the In predicate on the "resolution_height" field.
func ResolutionHeightLT ¶
ResolutionHeightLT applies the LT predicate on the "resolution_height" field.
func ResolutionHeightLTE ¶
ResolutionHeightLTE applies the LTE predicate on the "resolution_height" field.
func ResolutionHeightNEQ ¶
ResolutionHeightNEQ applies the NEQ predicate on the "resolution_height" field.
func ResolutionHeightNotIn ¶
ResolutionHeightNotIn applies the NotIn predicate on the "resolution_height" field.
func ResolutionWidth ¶
ResolutionWidth applies equality check predicate on the "resolution_width" field. It's identical to ResolutionWidthEQ.
func ResolutionWidthEQ ¶
ResolutionWidthEQ applies the EQ predicate on the "resolution_width" field.
func ResolutionWidthGT ¶
ResolutionWidthGT applies the GT predicate on the "resolution_width" field.
func ResolutionWidthGTE ¶
ResolutionWidthGTE applies the GTE predicate on the "resolution_width" field.
func ResolutionWidthIn ¶
ResolutionWidthIn applies the In predicate on the "resolution_width" field.
func ResolutionWidthLT ¶
ResolutionWidthLT applies the LT predicate on the "resolution_width" field.
func ResolutionWidthLTE ¶
ResolutionWidthLTE applies the LTE predicate on the "resolution_width" field.
func ResolutionWidthNEQ ¶
ResolutionWidthNEQ applies the NEQ predicate on the "resolution_width" field.
func ResolutionWidthNotIn ¶
ResolutionWidthNotIn applies the NotIn predicate on the "resolution_width" field.
func TargetBandwidth ¶
TargetBandwidth applies equality check predicate on the "target_bandwidth" field. It's identical to TargetBandwidthEQ.
func TargetBandwidthEQ ¶
TargetBandwidthEQ applies the EQ predicate on the "target_bandwidth" field.
func TargetBandwidthGT ¶
TargetBandwidthGT applies the GT predicate on the "target_bandwidth" field.
func TargetBandwidthGTE ¶
TargetBandwidthGTE applies the GTE predicate on the "target_bandwidth" field.
func TargetBandwidthIn ¶
TargetBandwidthIn applies the In predicate on the "target_bandwidth" field.
func TargetBandwidthLT ¶
TargetBandwidthLT applies the LT predicate on the "target_bandwidth" field.
func TargetBandwidthLTE ¶
TargetBandwidthLTE applies the LTE predicate on the "target_bandwidth" field.
func TargetBandwidthNEQ ¶
TargetBandwidthNEQ applies the NEQ predicate on the "target_bandwidth" field.
func TargetBandwidthNotIn ¶
TargetBandwidthNotIn applies the NotIn predicate on the "target_bandwidth" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VideoBitrate ¶
VideoBitrate applies equality check predicate on the "video_bitrate" field. It's identical to VideoBitrateEQ.
func VideoBitrateEQ ¶
VideoBitrateEQ applies the EQ predicate on the "video_bitrate" field.
func VideoBitrateGT ¶
VideoBitrateGT applies the GT predicate on the "video_bitrate" field.
func VideoBitrateGTE ¶
VideoBitrateGTE applies the GTE predicate on the "video_bitrate" field.
func VideoBitrateIn ¶
VideoBitrateIn applies the In predicate on the "video_bitrate" field.
func VideoBitrateLT ¶
VideoBitrateLT applies the LT predicate on the "video_bitrate" field.
func VideoBitrateLTE ¶
VideoBitrateLTE applies the LTE predicate on the "video_bitrate" field.
func VideoBitrateNEQ ¶
VideoBitrateNEQ applies the NEQ predicate on the "video_bitrate" field.
func VideoBitrateNotIn ¶
VideoBitrateNotIn applies the NotIn predicate on the "video_bitrate" field.