live

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 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"
	// 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"
	// 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"
	// 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"
)

Variables

View Source
var (
	// 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
	// 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 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 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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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