live

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 live type in the database.
	Label = "live"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldWatchLive holds the string denoting the watch_live field in the database.
	FieldWatchLive = "watch_live"
	// FieldWatchVod holds the string denoting the watch_vod field in the database.
	FieldWatchVod = "watch_vod"
	// FieldDownloadArchives holds the string denoting the download_archives field in the database.
	FieldDownloadArchives = "download_archives"
	// FieldDownloadHighlights holds the string denoting the download_highlights field in the database.
	FieldDownloadHighlights = "download_highlights"
	// FieldDownloadUploads holds the string denoting the download_uploads field in the database.
	FieldDownloadUploads = "download_uploads"
	// FieldDownloadSubOnly holds the string denoting the download_sub_only field in the database.
	FieldDownloadSubOnly = "download_sub_only"
	// FieldIsLive holds the string denoting the is_live field in the database.
	FieldIsLive = "is_live"
	// FieldArchiveChat holds the string denoting the archive_chat field in the database.
	FieldArchiveChat = "archive_chat"
	// FieldResolution holds the string denoting the resolution field in the database.
	FieldResolution = "resolution"
	// FieldLastLive holds the string denoting the last_live field in the database.
	FieldLastLive = "last_live"
	// FieldRenderChat holds the string denoting the render_chat field in the database.
	FieldRenderChat = "render_chat"
	// 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"
	// EdgeChannel holds the string denoting the channel edge name in mutations.
	EdgeChannel = "channel"
	// EdgeCategories holds the string denoting the categories edge name in mutations.
	EdgeCategories = "categories"
	// Table holds the table name of the live in the database.
	Table = "lives"
	// ChannelTable is the table that holds the channel relation/edge.
	ChannelTable = "lives"
	// ChannelInverseTable is the table name for the Channel entity.
	// It exists in this package in order to avoid circular dependency with the "channel" package.
	ChannelInverseTable = "channels"
	// ChannelColumn is the table column denoting the channel relation/edge.
	ChannelColumn = "channel_live"
	// CategoriesTable is the table that holds the categories relation/edge.
	CategoriesTable = "live_categories"
	// CategoriesInverseTable is the table name for the LiveCategory entity.
	// It exists in this package in order to avoid circular dependency with the "livecategory" package.
	CategoriesInverseTable = "live_categories"
	// CategoriesColumn is the table column denoting the categories relation/edge.
	CategoriesColumn = "live_id"
)

Variables

View Source
var (
	// DefaultWatchLive holds the default value on creation for the "watch_live" field.
	DefaultWatchLive bool
	// DefaultWatchVod holds the default value on creation for the "watch_vod" field.
	DefaultWatchVod bool
	// DefaultDownloadArchives holds the default value on creation for the "download_archives" field.
	DefaultDownloadArchives bool
	// DefaultDownloadHighlights holds the default value on creation for the "download_highlights" field.
	DefaultDownloadHighlights bool
	// DefaultDownloadUploads holds the default value on creation for the "download_uploads" field.
	DefaultDownloadUploads bool
	// DefaultDownloadSubOnly holds the default value on creation for the "download_sub_only" field.
	DefaultDownloadSubOnly bool
	// DefaultIsLive holds the default value on creation for the "is_live" field.
	DefaultIsLive bool
	// DefaultArchiveChat holds the default value on creation for the "archive_chat" field.
	DefaultArchiveChat bool
	// DefaultResolution holds the default value on creation for the "resolution" field.
	DefaultResolution string
	// DefaultLastLive holds the default value on creation for the "last_live" field.
	DefaultLastLive func() time.Time
	// DefaultRenderChat holds the default value on creation for the "render_chat" field.
	DefaultRenderChat 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 live fields.

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

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

Functions

func And

func And(predicates ...predicate.Live) predicate.Live

And groups predicates with the AND operator between them.

func ArchiveChat

func ArchiveChat(v bool) predicate.Live

ArchiveChat applies equality check predicate on the "archive_chat" field. It's identical to ArchiveChatEQ.

func ArchiveChatEQ

func ArchiveChatEQ(v bool) predicate.Live

ArchiveChatEQ applies the EQ predicate on the "archive_chat" field.

func ArchiveChatNEQ

func ArchiveChatNEQ(v bool) predicate.Live

ArchiveChatNEQ applies the NEQ predicate on the "archive_chat" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Live

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Live

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Live

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Live

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Live

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Live

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Live

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

func CreatedAtNotIn

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

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

func DownloadArchives added in v1.1.0

func DownloadArchives(v bool) predicate.Live

DownloadArchives applies equality check predicate on the "download_archives" field. It's identical to DownloadArchivesEQ.

func DownloadArchivesEQ added in v1.1.0

func DownloadArchivesEQ(v bool) predicate.Live

DownloadArchivesEQ applies the EQ predicate on the "download_archives" field.

func DownloadArchivesNEQ added in v1.1.0

func DownloadArchivesNEQ(v bool) predicate.Live

DownloadArchivesNEQ applies the NEQ predicate on the "download_archives" field.

func DownloadHighlights added in v1.1.0

func DownloadHighlights(v bool) predicate.Live

DownloadHighlights applies equality check predicate on the "download_highlights" field. It's identical to DownloadHighlightsEQ.

func DownloadHighlightsEQ added in v1.1.0

func DownloadHighlightsEQ(v bool) predicate.Live

DownloadHighlightsEQ applies the EQ predicate on the "download_highlights" field.

func DownloadHighlightsNEQ added in v1.1.0

func DownloadHighlightsNEQ(v bool) predicate.Live

DownloadHighlightsNEQ applies the NEQ predicate on the "download_highlights" field.

func DownloadSubOnly added in v1.2.0

func DownloadSubOnly(v bool) predicate.Live

DownloadSubOnly applies equality check predicate on the "download_sub_only" field. It's identical to DownloadSubOnlyEQ.

func DownloadSubOnlyEQ added in v1.2.0

func DownloadSubOnlyEQ(v bool) predicate.Live

DownloadSubOnlyEQ applies the EQ predicate on the "download_sub_only" field.

func DownloadSubOnlyNEQ added in v1.2.0

func DownloadSubOnlyNEQ(v bool) predicate.Live

DownloadSubOnlyNEQ applies the NEQ predicate on the "download_sub_only" field.

func DownloadUploads added in v1.1.0

func DownloadUploads(v bool) predicate.Live

DownloadUploads applies equality check predicate on the "download_uploads" field. It's identical to DownloadUploadsEQ.

func DownloadUploadsEQ added in v1.1.0

func DownloadUploadsEQ(v bool) predicate.Live

DownloadUploadsEQ applies the EQ predicate on the "download_uploads" field.

func DownloadUploadsNEQ added in v1.1.0

func DownloadUploadsNEQ(v bool) predicate.Live

DownloadUploadsNEQ applies the NEQ predicate on the "download_uploads" field.

func HasCategories added in v1.2.4

func HasCategories() predicate.Live

HasCategories applies the HasEdge predicate on the "categories" edge.

func HasCategoriesWith added in v1.2.4

func HasCategoriesWith(preds ...predicate.LiveCategory) predicate.Live

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

func HasChannel

func HasChannel() predicate.Live

HasChannel applies the HasEdge predicate on the "channel" edge.

func HasChannelWith

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

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

func ID

func ID(id uuid.UUID) predicate.Live

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Live

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Live

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Live

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Live

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Live

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Live

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsLive

func IsLive(v bool) predicate.Live

IsLive applies equality check predicate on the "is_live" field. It's identical to IsLiveEQ.

func IsLiveEQ

func IsLiveEQ(v bool) predicate.Live

IsLiveEQ applies the EQ predicate on the "is_live" field.

func IsLiveNEQ

func IsLiveNEQ(v bool) predicate.Live

IsLiveNEQ applies the NEQ predicate on the "is_live" field.

func LastLive

func LastLive(v time.Time) predicate.Live

LastLive applies equality check predicate on the "last_live" field. It's identical to LastLiveEQ.

func LastLiveEQ

func LastLiveEQ(v time.Time) predicate.Live

LastLiveEQ applies the EQ predicate on the "last_live" field.

func LastLiveGT

func LastLiveGT(v time.Time) predicate.Live

LastLiveGT applies the GT predicate on the "last_live" field.

func LastLiveGTE

func LastLiveGTE(v time.Time) predicate.Live

LastLiveGTE applies the GTE predicate on the "last_live" field.

func LastLiveIn

func LastLiveIn(vs ...time.Time) predicate.Live

LastLiveIn applies the In predicate on the "last_live" field.

func LastLiveLT

func LastLiveLT(v time.Time) predicate.Live

LastLiveLT applies the LT predicate on the "last_live" field.

func LastLiveLTE

func LastLiveLTE(v time.Time) predicate.Live

LastLiveLTE applies the LTE predicate on the "last_live" field.

func LastLiveNEQ

func LastLiveNEQ(v time.Time) predicate.Live

LastLiveNEQ applies the NEQ predicate on the "last_live" field.

func LastLiveNotIn

func LastLiveNotIn(vs ...time.Time) predicate.Live

LastLiveNotIn applies the NotIn predicate on the "last_live" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Live) predicate.Live

Or groups predicates with the OR operator between them.

func RenderChat added in v1.1.7

func RenderChat(v bool) predicate.Live

RenderChat applies equality check predicate on the "render_chat" field. It's identical to RenderChatEQ.

func RenderChatEQ added in v1.1.7

func RenderChatEQ(v bool) predicate.Live

RenderChatEQ applies the EQ predicate on the "render_chat" field.

func RenderChatNEQ added in v1.1.7

func RenderChatNEQ(v bool) predicate.Live

RenderChatNEQ applies the NEQ predicate on the "render_chat" field.

func Resolution

func Resolution(v string) predicate.Live

Resolution applies equality check predicate on the "resolution" field. It's identical to ResolutionEQ.

func ResolutionContains

func ResolutionContains(v string) predicate.Live

ResolutionContains applies the Contains predicate on the "resolution" field.

func ResolutionContainsFold

func ResolutionContainsFold(v string) predicate.Live

ResolutionContainsFold applies the ContainsFold predicate on the "resolution" field.

func ResolutionEQ

func ResolutionEQ(v string) predicate.Live

ResolutionEQ applies the EQ predicate on the "resolution" field.

func ResolutionEqualFold

func ResolutionEqualFold(v string) predicate.Live

ResolutionEqualFold applies the EqualFold predicate on the "resolution" field.

func ResolutionGT

func ResolutionGT(v string) predicate.Live

ResolutionGT applies the GT predicate on the "resolution" field.

func ResolutionGTE

func ResolutionGTE(v string) predicate.Live

ResolutionGTE applies the GTE predicate on the "resolution" field.

func ResolutionHasPrefix

func ResolutionHasPrefix(v string) predicate.Live

ResolutionHasPrefix applies the HasPrefix predicate on the "resolution" field.

func ResolutionHasSuffix

func ResolutionHasSuffix(v string) predicate.Live

ResolutionHasSuffix applies the HasSuffix predicate on the "resolution" field.

func ResolutionIn

func ResolutionIn(vs ...string) predicate.Live

ResolutionIn applies the In predicate on the "resolution" field.

func ResolutionIsNil

func ResolutionIsNil() predicate.Live

ResolutionIsNil applies the IsNil predicate on the "resolution" field.

func ResolutionLT

func ResolutionLT(v string) predicate.Live

ResolutionLT applies the LT predicate on the "resolution" field.

func ResolutionLTE

func ResolutionLTE(v string) predicate.Live

ResolutionLTE applies the LTE predicate on the "resolution" field.

func ResolutionNEQ

func ResolutionNEQ(v string) predicate.Live

ResolutionNEQ applies the NEQ predicate on the "resolution" field.

func ResolutionNotIn

func ResolutionNotIn(vs ...string) predicate.Live

ResolutionNotIn applies the NotIn predicate on the "resolution" field.

func ResolutionNotNil

func ResolutionNotNil() predicate.Live

ResolutionNotNil applies the NotNil predicate on the "resolution" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Live

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Live

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Live

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Live

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Live

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Live

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Live

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

func UpdatedAtNotIn

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

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 WatchLive added in v1.1.0

func WatchLive(v bool) predicate.Live

WatchLive applies equality check predicate on the "watch_live" field. It's identical to WatchLiveEQ.

func WatchLiveEQ added in v1.1.0

func WatchLiveEQ(v bool) predicate.Live

WatchLiveEQ applies the EQ predicate on the "watch_live" field.

func WatchLiveNEQ added in v1.1.0

func WatchLiveNEQ(v bool) predicate.Live

WatchLiveNEQ applies the NEQ predicate on the "watch_live" field.

func WatchVod added in v1.1.0

func WatchVod(v bool) predicate.Live

WatchVod applies equality check predicate on the "watch_vod" field. It's identical to WatchVodEQ.

func WatchVodEQ added in v1.1.0

func WatchVodEQ(v bool) predicate.Live

WatchVodEQ applies the EQ predicate on the "watch_vod" field.

func WatchVodNEQ added in v1.1.0

func WatchVodNEQ(v bool) predicate.Live

WatchVodNEQ applies the NEQ predicate on the "watch_vod" field.

Types

type OrderOption added in v1.2.12

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Live queries.

func ByArchiveChat added in v1.2.12

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

ByArchiveChat orders the results by the archive_chat field.

func ByCategories added in v1.2.12

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

ByCategories orders the results by categories terms.

func ByCategoriesCount added in v1.2.12

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

ByCategoriesCount orders the results by categories count.

func ByChannelField added in v1.2.12

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

ByChannelField orders the results by channel field.

func ByCreatedAt added in v1.2.12

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

ByCreatedAt orders the results by the created_at field.

func ByDownloadArchives added in v1.2.12

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

ByDownloadArchives orders the results by the download_archives field.

func ByDownloadHighlights added in v1.2.12

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

ByDownloadHighlights orders the results by the download_highlights field.

func ByDownloadSubOnly added in v1.2.12

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

ByDownloadSubOnly orders the results by the download_sub_only field.

func ByDownloadUploads added in v1.2.12

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

ByDownloadUploads orders the results by the download_uploads field.

func ByID added in v1.2.12

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

ByID orders the results by the id field.

func ByIsLive added in v1.2.12

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

ByIsLive orders the results by the is_live field.

func ByLastLive added in v1.2.12

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

ByLastLive orders the results by the last_live field.

func ByRenderChat added in v1.2.12

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

ByRenderChat orders the results by the render_chat field.

func ByResolution added in v1.2.12

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

ByResolution orders the results by the resolution field.

func ByUpdatedAt added in v1.2.12

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

ByUpdatedAt orders the results by the updated_at field.

func ByWatchLive added in v1.2.12

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

ByWatchLive orders the results by the watch_live field.

func ByWatchVod added in v1.2.12

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

ByWatchVod orders the results by the watch_vod field.

Jump to

Keyboard shortcuts

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