channel

package
v1.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the channel type in the database.
	Label = "channel"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldExtID holds the string denoting the ext_id field in the database.
	FieldExtID = "ext_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldImagePath holds the string denoting the image_path field in the database.
	FieldImagePath = "image_path"
	// FieldRetention holds the string denoting the retention field in the database.
	FieldRetention = "retention"
	// FieldRetentionDays holds the string denoting the retention_days field in the database.
	FieldRetentionDays = "retention_days"
	// 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"
	// EdgeVods holds the string denoting the vods edge name in mutations.
	EdgeVods = "vods"
	// EdgeLive holds the string denoting the live edge name in mutations.
	EdgeLive = "live"
	// Table holds the table name of the channel in the database.
	Table = "channels"
	// VodsTable is the table that holds the vods relation/edge.
	VodsTable = "vods"
	// VodsInverseTable is the table name for the Vod entity.
	// It exists in this package in order to avoid circular dependency with the "vod" package.
	VodsInverseTable = "vods"
	// VodsColumn is the table column denoting the vods relation/edge.
	VodsColumn = "channel_vods"
	// LiveTable is the table that holds the live relation/edge.
	LiveTable = "lives"
	// LiveInverseTable is the table name for the Live entity.
	// It exists in this package in order to avoid circular dependency with the "live" package.
	LiveInverseTable = "lives"
	// LiveColumn is the table column denoting the live relation/edge.
	LiveColumn = "channel_live"
)

Variables

View Source
var (
	// DefaultRetention holds the default value on creation for the "retention" field.
	DefaultRetention bool
	// 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 channel fields.

Functions

func And

func And(predicates ...predicate.Channel) predicate.Channel

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Channel

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Channel

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Channel

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Channel

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Channel

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Channel

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Channel

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

func CreatedAtNotIn

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

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

func DisplayName

func DisplayName(v string) predicate.Channel

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Channel

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Channel

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Channel

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Channel

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Channel

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Channel

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Channel

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Channel

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Channel

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Channel

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Channel

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Channel

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Channel

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func ExtID added in v1.1.0

func ExtID(v string) predicate.Channel

ExtID applies equality check predicate on the "ext_id" field. It's identical to ExtIDEQ.

func ExtIDContains added in v1.1.0

func ExtIDContains(v string) predicate.Channel

ExtIDContains applies the Contains predicate on the "ext_id" field.

func ExtIDContainsFold added in v1.1.0

func ExtIDContainsFold(v string) predicate.Channel

ExtIDContainsFold applies the ContainsFold predicate on the "ext_id" field.

func ExtIDEQ added in v1.1.0

func ExtIDEQ(v string) predicate.Channel

ExtIDEQ applies the EQ predicate on the "ext_id" field.

func ExtIDEqualFold added in v1.1.0

func ExtIDEqualFold(v string) predicate.Channel

ExtIDEqualFold applies the EqualFold predicate on the "ext_id" field.

func ExtIDGT added in v1.1.0

func ExtIDGT(v string) predicate.Channel

ExtIDGT applies the GT predicate on the "ext_id" field.

func ExtIDGTE added in v1.1.0

func ExtIDGTE(v string) predicate.Channel

ExtIDGTE applies the GTE predicate on the "ext_id" field.

func ExtIDHasPrefix added in v1.1.0

func ExtIDHasPrefix(v string) predicate.Channel

ExtIDHasPrefix applies the HasPrefix predicate on the "ext_id" field.

func ExtIDHasSuffix added in v1.1.0

func ExtIDHasSuffix(v string) predicate.Channel

ExtIDHasSuffix applies the HasSuffix predicate on the "ext_id" field.

func ExtIDIn added in v1.1.0

func ExtIDIn(vs ...string) predicate.Channel

ExtIDIn applies the In predicate on the "ext_id" field.

func ExtIDIsNil added in v1.1.0

func ExtIDIsNil() predicate.Channel

ExtIDIsNil applies the IsNil predicate on the "ext_id" field.

func ExtIDLT added in v1.1.0

func ExtIDLT(v string) predicate.Channel

ExtIDLT applies the LT predicate on the "ext_id" field.

func ExtIDLTE added in v1.1.0

func ExtIDLTE(v string) predicate.Channel

ExtIDLTE applies the LTE predicate on the "ext_id" field.

func ExtIDNEQ added in v1.1.0

func ExtIDNEQ(v string) predicate.Channel

ExtIDNEQ applies the NEQ predicate on the "ext_id" field.

func ExtIDNotIn added in v1.1.0

func ExtIDNotIn(vs ...string) predicate.Channel

ExtIDNotIn applies the NotIn predicate on the "ext_id" field.

func ExtIDNotNil added in v1.1.0

func ExtIDNotNil() predicate.Channel

ExtIDNotNil applies the NotNil predicate on the "ext_id" field.

func HasLive

func HasLive() predicate.Channel

HasLive applies the HasEdge predicate on the "live" edge.

func HasLiveWith

func HasLiveWith(preds ...predicate.Live) predicate.Channel

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

func HasVods

func HasVods() predicate.Channel

HasVods applies the HasEdge predicate on the "vods" edge.

func HasVodsWith

func HasVodsWith(preds ...predicate.Vod) predicate.Channel

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

func ID

func ID(id uuid.UUID) predicate.Channel

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Channel

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Channel

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Channel

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Channel

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Channel

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Channel

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func ImagePath

func ImagePath(v string) predicate.Channel

ImagePath applies equality check predicate on the "image_path" field. It's identical to ImagePathEQ.

func ImagePathContains

func ImagePathContains(v string) predicate.Channel

ImagePathContains applies the Contains predicate on the "image_path" field.

func ImagePathContainsFold

func ImagePathContainsFold(v string) predicate.Channel

ImagePathContainsFold applies the ContainsFold predicate on the "image_path" field.

func ImagePathEQ

func ImagePathEQ(v string) predicate.Channel

ImagePathEQ applies the EQ predicate on the "image_path" field.

func ImagePathEqualFold

func ImagePathEqualFold(v string) predicate.Channel

ImagePathEqualFold applies the EqualFold predicate on the "image_path" field.

func ImagePathGT

func ImagePathGT(v string) predicate.Channel

ImagePathGT applies the GT predicate on the "image_path" field.

func ImagePathGTE

func ImagePathGTE(v string) predicate.Channel

ImagePathGTE applies the GTE predicate on the "image_path" field.

func ImagePathHasPrefix

func ImagePathHasPrefix(v string) predicate.Channel

ImagePathHasPrefix applies the HasPrefix predicate on the "image_path" field.

func ImagePathHasSuffix

func ImagePathHasSuffix(v string) predicate.Channel

ImagePathHasSuffix applies the HasSuffix predicate on the "image_path" field.

func ImagePathIn

func ImagePathIn(vs ...string) predicate.Channel

ImagePathIn applies the In predicate on the "image_path" field.

func ImagePathLT

func ImagePathLT(v string) predicate.Channel

ImagePathLT applies the LT predicate on the "image_path" field.

func ImagePathLTE

func ImagePathLTE(v string) predicate.Channel

ImagePathLTE applies the LTE predicate on the "image_path" field.

func ImagePathNEQ

func ImagePathNEQ(v string) predicate.Channel

ImagePathNEQ applies the NEQ predicate on the "image_path" field.

func ImagePathNotIn

func ImagePathNotIn(vs ...string) predicate.Channel

ImagePathNotIn applies the NotIn predicate on the "image_path" field.

func Name

func Name(v string) predicate.Channel

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Channel

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Channel

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Channel

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Channel

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Channel

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Channel

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Channel

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Channel

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Channel

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Channel

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Channel

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Channel

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Channel

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Channel) predicate.Channel

Or groups predicates with the OR operator between them.

func Retention added in v1.2.12

func Retention(v bool) predicate.Channel

Retention applies equality check predicate on the "retention" field. It's identical to RetentionEQ.

func RetentionDays added in v1.2.12

func RetentionDays(v int64) predicate.Channel

RetentionDays applies equality check predicate on the "retention_days" field. It's identical to RetentionDaysEQ.

func RetentionDaysEQ added in v1.2.12

func RetentionDaysEQ(v int64) predicate.Channel

RetentionDaysEQ applies the EQ predicate on the "retention_days" field.

func RetentionDaysGT added in v1.2.12

func RetentionDaysGT(v int64) predicate.Channel

RetentionDaysGT applies the GT predicate on the "retention_days" field.

func RetentionDaysGTE added in v1.2.12

func RetentionDaysGTE(v int64) predicate.Channel

RetentionDaysGTE applies the GTE predicate on the "retention_days" field.

func RetentionDaysIn added in v1.2.12

func RetentionDaysIn(vs ...int64) predicate.Channel

RetentionDaysIn applies the In predicate on the "retention_days" field.

func RetentionDaysIsNil added in v1.2.12

func RetentionDaysIsNil() predicate.Channel

RetentionDaysIsNil applies the IsNil predicate on the "retention_days" field.

func RetentionDaysLT added in v1.2.12

func RetentionDaysLT(v int64) predicate.Channel

RetentionDaysLT applies the LT predicate on the "retention_days" field.

func RetentionDaysLTE added in v1.2.12

func RetentionDaysLTE(v int64) predicate.Channel

RetentionDaysLTE applies the LTE predicate on the "retention_days" field.

func RetentionDaysNEQ added in v1.2.12

func RetentionDaysNEQ(v int64) predicate.Channel

RetentionDaysNEQ applies the NEQ predicate on the "retention_days" field.

func RetentionDaysNotIn added in v1.2.12

func RetentionDaysNotIn(vs ...int64) predicate.Channel

RetentionDaysNotIn applies the NotIn predicate on the "retention_days" field.

func RetentionDaysNotNil added in v1.2.12

func RetentionDaysNotNil() predicate.Channel

RetentionDaysNotNil applies the NotNil predicate on the "retention_days" field.

func RetentionEQ added in v1.2.12

func RetentionEQ(v bool) predicate.Channel

RetentionEQ applies the EQ predicate on the "retention" field.

func RetentionNEQ added in v1.2.12

func RetentionNEQ(v bool) predicate.Channel

RetentionNEQ applies the NEQ predicate on the "retention" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Channel

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Channel

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Channel

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Channel

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Channel

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Channel

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Channel

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

func UpdatedAtNotIn

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

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).

Types

type OrderOption added in v1.2.12

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Channel queries.

func ByCreatedAt added in v1.2.12

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

ByCreatedAt orders the results by the created_at field.

func ByDisplayName added in v1.2.12

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

ByDisplayName orders the results by the display_name field.

func ByExtID added in v1.2.12

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

ByExtID orders the results by the ext_id field.

func ByID added in v1.2.12

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

ByID orders the results by the id field.

func ByImagePath added in v1.2.12

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

ByImagePath orders the results by the image_path field.

func ByLive added in v1.2.12

func ByLive(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLive orders the results by live terms.

func ByLiveCount added in v1.2.12

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

ByLiveCount orders the results by live count.

func ByName added in v1.2.12

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

ByName orders the results by the name field.

func ByRetention added in v1.2.12

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

ByRetention orders the results by the retention field.

func ByRetentionDays added in v1.2.12

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

ByRetentionDays orders the results by the retention_days field.

func ByUpdatedAt added in v1.2.12

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

ByUpdatedAt orders the results by the updated_at field.

func ByVods added in v1.2.12

func ByVods(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVods orders the results by vods terms.

func ByVodsCount added in v1.2.12

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

ByVodsCount orders the results by vods count.

Jump to

Keyboard shortcuts

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