playback

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the playback type in the database.
	Label = "playback"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldVodID holds the string denoting the vod_id field in the database.
	FieldVodID = "vod_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the playback in the database.
	Table = "playbacks"
)
View Source
const DefaultStatus utils.PlaybackStatus = "in_progress"

Variables

View Source
var (
	// DefaultTime holds the default value on creation for the "time" field.
	DefaultTime int
	// 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for playback fields.

Functions

func And

func And(predicates ...predicate.Playback) predicate.Playback

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Playback

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Playback

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Playback

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Playback

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Playback

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Playback

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Playback

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

func CreatedAtNotIn

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

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

func ID

func ID(id uuid.UUID) predicate.Playback

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Playback

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Playback

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Playback

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Playback

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Playback

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Playback

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Playback) predicate.Playback

Or groups predicates with the OR operator between them.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...utils.PlaybackStatus) predicate.Playback

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.Playback

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNEQ

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...utils.PlaybackStatus) predicate.Playback

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Playback

StatusNotNil applies the NotNil predicate on the "status" field.

func StatusValidator

func StatusValidator(s utils.PlaybackStatus) error

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

func Time

func Time(v int) predicate.Playback

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v int) predicate.Playback

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v int) predicate.Playback

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v int) predicate.Playback

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...int) predicate.Playback

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v int) predicate.Playback

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v int) predicate.Playback

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v int) predicate.Playback

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...int) predicate.Playback

TimeNotIn applies the NotIn predicate on the "time" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Playback

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Playback

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Playback

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Playback

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Playback

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Playback

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Playback

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

func UpdatedAtNotIn

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

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

func UserID

func UserID(v uuid.UUID) predicate.Playback

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.Playback

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v uuid.UUID) predicate.Playback

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v uuid.UUID) predicate.Playback

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.Playback

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v uuid.UUID) predicate.Playback

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v uuid.UUID) predicate.Playback

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.Playback

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.Playback

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VodID

func VodID(v uuid.UUID) predicate.Playback

VodID applies equality check predicate on the "vod_id" field. It's identical to VodIDEQ.

func VodIDEQ

func VodIDEQ(v uuid.UUID) predicate.Playback

VodIDEQ applies the EQ predicate on the "vod_id" field.

func VodIDGT

func VodIDGT(v uuid.UUID) predicate.Playback

VodIDGT applies the GT predicate on the "vod_id" field.

func VodIDGTE

func VodIDGTE(v uuid.UUID) predicate.Playback

VodIDGTE applies the GTE predicate on the "vod_id" field.

func VodIDIn

func VodIDIn(vs ...uuid.UUID) predicate.Playback

VodIDIn applies the In predicate on the "vod_id" field.

func VodIDLT

func VodIDLT(v uuid.UUID) predicate.Playback

VodIDLT applies the LT predicate on the "vod_id" field.

func VodIDLTE

func VodIDLTE(v uuid.UUID) predicate.Playback

VodIDLTE applies the LTE predicate on the "vod_id" field.

func VodIDNEQ

func VodIDNEQ(v uuid.UUID) predicate.Playback

VodIDNEQ applies the NEQ predicate on the "vod_id" field.

func VodIDNotIn

func VodIDNotIn(vs ...uuid.UUID) predicate.Playback

VodIDNotIn applies the NotIn predicate on the "vod_id" field.

Types

type OrderOption added in v1.2.12

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Playback queries.

func ByCreatedAt added in v1.2.12

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

ByCreatedAt orders the results by the created_at field.

func ByID added in v1.2.12

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

ByID orders the results by the id field.

func ByStatus added in v1.2.12

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

ByStatus orders the results by the status field.

func ByTime added in v1.2.12

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

ByTime orders the results by the time field.

func ByUpdatedAt added in v1.2.12

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserID added in v1.2.12

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

ByUserID orders the results by the user_id field.

func ByVodID added in v1.2.12

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

ByVodID orders the results by the vod_id field.

Jump to

Keyboard shortcuts

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