channel

package
v0.0.0-...-552f0aa Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 3 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"
	// FieldChannelID holds the string denoting the channelid field in the database.
	FieldChannelID = "channel_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// EdgeSubscribers holds the string denoting the subscribers edge name in mutations.
	EdgeSubscribers = "Subscribers"
	// Table holds the table name of the channel in the database.
	Table = "channels"
	// SubscribersTable is the table the holds the Subscribers relation/edge. The primary key declared below.
	SubscribersTable = "channel_Subscribers"
	// SubscribersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	SubscribersInverseTable = "users"
)

Variables

Columns holds all SQL columns for channel fields.

View Source
var (
	// SubscribersPrimaryKey and SubscribersColumn2 are the table columns denoting the
	// primary key for the Subscribers relation (M2M).
	SubscribersPrimaryKey = []string{"channel_id", "user_id"}
)

Functions

func And

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

And groups predicates with the AND operator between them.

func ChannelID

func ChannelID(v string) predicate.Channel

ChannelID applies equality check predicate on the "ChannelID" field. It's identical to ChannelIDEQ.

func ChannelIDContains

func ChannelIDContains(v string) predicate.Channel

ChannelIDContains applies the Contains predicate on the "ChannelID" field.

func ChannelIDContainsFold

func ChannelIDContainsFold(v string) predicate.Channel

ChannelIDContainsFold applies the ContainsFold predicate on the "ChannelID" field.

func ChannelIDEQ

func ChannelIDEQ(v string) predicate.Channel

ChannelIDEQ applies the EQ predicate on the "ChannelID" field.

func ChannelIDEqualFold

func ChannelIDEqualFold(v string) predicate.Channel

ChannelIDEqualFold applies the EqualFold predicate on the "ChannelID" field.

func ChannelIDGT

func ChannelIDGT(v string) predicate.Channel

ChannelIDGT applies the GT predicate on the "ChannelID" field.

func ChannelIDGTE

func ChannelIDGTE(v string) predicate.Channel

ChannelIDGTE applies the GTE predicate on the "ChannelID" field.

func ChannelIDHasPrefix

func ChannelIDHasPrefix(v string) predicate.Channel

ChannelIDHasPrefix applies the HasPrefix predicate on the "ChannelID" field.

func ChannelIDHasSuffix

func ChannelIDHasSuffix(v string) predicate.Channel

ChannelIDHasSuffix applies the HasSuffix predicate on the "ChannelID" field.

func ChannelIDIn

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

ChannelIDIn applies the In predicate on the "ChannelID" field.

func ChannelIDLT

func ChannelIDLT(v string) predicate.Channel

ChannelIDLT applies the LT predicate on the "ChannelID" field.

func ChannelIDLTE

func ChannelIDLTE(v string) predicate.Channel

ChannelIDLTE applies the LTE predicate on the "ChannelID" field.

func ChannelIDNEQ

func ChannelIDNEQ(v string) predicate.Channel

ChannelIDNEQ applies the NEQ predicate on the "ChannelID" field.

func ChannelIDNotIn

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

ChannelIDNotIn applies the NotIn predicate on the "ChannelID" field.

func HasSubscribers

func HasSubscribers() predicate.Channel

HasSubscribers applies the HasEdge predicate on the "Subscribers" edge.

func HasSubscribersWith

func HasSubscribersWith(preds ...predicate.User) predicate.Channel

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

func ID

func ID(id int) predicate.Channel

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Channel

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Channel

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Channel

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Channel

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Channel

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Channel

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Channel

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Channel

IDNotIn applies the NotIn predicate on the ID 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 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