device

package
v0.0.0-...-d6725e5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the device type in the database.
	Label = "device"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldIdentifier holds the string denoting the identifier field in the database.
	FieldIdentifier = "identifier"
	// FieldChannel holds the string denoting the channel field in the database.
	FieldChannel = "channel"
	// FieldChannelMeta holds the string denoting the channelmeta field in the database.
	FieldChannelMeta = "channel_meta"
	// FieldChannelToken holds the string denoting the channeltoken field in the database.
	FieldChannelToken = "channel_token"
	// FieldDeviceName holds the string denoting the devicename field in the database.
	FieldDeviceName = "device_name"
	// FieldDeviceMeta holds the string denoting the devicemeta field in the database.
	FieldDeviceMeta = "device_meta"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the device in the database.
	Table = "devices"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "devices"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_devices"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt 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
)

Columns holds all SQL columns for device fields.

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

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

Functions

func And

func And(predicates ...predicate.Device) predicate.Device

And groups predicates with the AND operator between them.

func Channel

func Channel(v enum.Sender) predicate.Device

Channel applies equality check predicate on the "channel" field. It's identical to ChannelEQ.

func ChannelContains

func ChannelContains(v enum.Sender) predicate.Device

ChannelContains applies the Contains predicate on the "channel" field.

func ChannelContainsFold

func ChannelContainsFold(v enum.Sender) predicate.Device

ChannelContainsFold applies the ContainsFold predicate on the "channel" field.

func ChannelEQ

func ChannelEQ(v enum.Sender) predicate.Device

ChannelEQ applies the EQ predicate on the "channel" field.

func ChannelEqualFold

func ChannelEqualFold(v enum.Sender) predicate.Device

ChannelEqualFold applies the EqualFold predicate on the "channel" field.

func ChannelGT

func ChannelGT(v enum.Sender) predicate.Device

ChannelGT applies the GT predicate on the "channel" field.

func ChannelGTE

func ChannelGTE(v enum.Sender) predicate.Device

ChannelGTE applies the GTE predicate on the "channel" field.

func ChannelHasPrefix

func ChannelHasPrefix(v enum.Sender) predicate.Device

ChannelHasPrefix applies the HasPrefix predicate on the "channel" field.

func ChannelHasSuffix

func ChannelHasSuffix(v enum.Sender) predicate.Device

ChannelHasSuffix applies the HasSuffix predicate on the "channel" field.

func ChannelIn

func ChannelIn(vs ...enum.Sender) predicate.Device

ChannelIn applies the In predicate on the "channel" field.

func ChannelLT

func ChannelLT(v enum.Sender) predicate.Device

ChannelLT applies the LT predicate on the "channel" field.

func ChannelLTE

func ChannelLTE(v enum.Sender) predicate.Device

ChannelLTE applies the LTE predicate on the "channel" field.

func ChannelMeta

func ChannelMeta(v string) predicate.Device

ChannelMeta applies equality check predicate on the "channelMeta" field. It's identical to ChannelMetaEQ.

func ChannelMetaContains

func ChannelMetaContains(v string) predicate.Device

ChannelMetaContains applies the Contains predicate on the "channelMeta" field.

func ChannelMetaContainsFold

func ChannelMetaContainsFold(v string) predicate.Device

ChannelMetaContainsFold applies the ContainsFold predicate on the "channelMeta" field.

func ChannelMetaEQ

func ChannelMetaEQ(v string) predicate.Device

ChannelMetaEQ applies the EQ predicate on the "channelMeta" field.

func ChannelMetaEqualFold

func ChannelMetaEqualFold(v string) predicate.Device

ChannelMetaEqualFold applies the EqualFold predicate on the "channelMeta" field.

func ChannelMetaGT

func ChannelMetaGT(v string) predicate.Device

ChannelMetaGT applies the GT predicate on the "channelMeta" field.

func ChannelMetaGTE

func ChannelMetaGTE(v string) predicate.Device

ChannelMetaGTE applies the GTE predicate on the "channelMeta" field.

func ChannelMetaHasPrefix

func ChannelMetaHasPrefix(v string) predicate.Device

ChannelMetaHasPrefix applies the HasPrefix predicate on the "channelMeta" field.

func ChannelMetaHasSuffix

func ChannelMetaHasSuffix(v string) predicate.Device

ChannelMetaHasSuffix applies the HasSuffix predicate on the "channelMeta" field.

func ChannelMetaIn

func ChannelMetaIn(vs ...string) predicate.Device

ChannelMetaIn applies the In predicate on the "channelMeta" field.

func ChannelMetaLT

func ChannelMetaLT(v string) predicate.Device

ChannelMetaLT applies the LT predicate on the "channelMeta" field.

func ChannelMetaLTE

func ChannelMetaLTE(v string) predicate.Device

ChannelMetaLTE applies the LTE predicate on the "channelMeta" field.

func ChannelMetaNEQ

func ChannelMetaNEQ(v string) predicate.Device

ChannelMetaNEQ applies the NEQ predicate on the "channelMeta" field.

func ChannelMetaNotIn

func ChannelMetaNotIn(vs ...string) predicate.Device

ChannelMetaNotIn applies the NotIn predicate on the "channelMeta" field.

func ChannelNEQ

func ChannelNEQ(v enum.Sender) predicate.Device

ChannelNEQ applies the NEQ predicate on the "channel" field.

func ChannelNotIn

func ChannelNotIn(vs ...enum.Sender) predicate.Device

ChannelNotIn applies the NotIn predicate on the "channel" field.

func ChannelToken

func ChannelToken(v string) predicate.Device

ChannelToken applies equality check predicate on the "channelToken" field. It's identical to ChannelTokenEQ.

func ChannelTokenContains

func ChannelTokenContains(v string) predicate.Device

ChannelTokenContains applies the Contains predicate on the "channelToken" field.

func ChannelTokenContainsFold

func ChannelTokenContainsFold(v string) predicate.Device

ChannelTokenContainsFold applies the ContainsFold predicate on the "channelToken" field.

func ChannelTokenEQ

func ChannelTokenEQ(v string) predicate.Device

ChannelTokenEQ applies the EQ predicate on the "channelToken" field.

func ChannelTokenEqualFold

func ChannelTokenEqualFold(v string) predicate.Device

ChannelTokenEqualFold applies the EqualFold predicate on the "channelToken" field.

func ChannelTokenGT

func ChannelTokenGT(v string) predicate.Device

ChannelTokenGT applies the GT predicate on the "channelToken" field.

func ChannelTokenGTE

func ChannelTokenGTE(v string) predicate.Device

ChannelTokenGTE applies the GTE predicate on the "channelToken" field.

func ChannelTokenHasPrefix

func ChannelTokenHasPrefix(v string) predicate.Device

ChannelTokenHasPrefix applies the HasPrefix predicate on the "channelToken" field.

func ChannelTokenHasSuffix

func ChannelTokenHasSuffix(v string) predicate.Device

ChannelTokenHasSuffix applies the HasSuffix predicate on the "channelToken" field.

func ChannelTokenIn

func ChannelTokenIn(vs ...string) predicate.Device

ChannelTokenIn applies the In predicate on the "channelToken" field.

func ChannelTokenLT

func ChannelTokenLT(v string) predicate.Device

ChannelTokenLT applies the LT predicate on the "channelToken" field.

func ChannelTokenLTE

func ChannelTokenLTE(v string) predicate.Device

ChannelTokenLTE applies the LTE predicate on the "channelToken" field.

func ChannelTokenNEQ

func ChannelTokenNEQ(v string) predicate.Device

ChannelTokenNEQ applies the NEQ predicate on the "channelToken" field.

func ChannelTokenNotIn

func ChannelTokenNotIn(vs ...string) predicate.Device

ChannelTokenNotIn applies the NotIn predicate on the "channelToken" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Device

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Device

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Device

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Device

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Device

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Device

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Device

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

func CreatedAtNotIn

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

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

func DeviceMeta

func DeviceMeta(v string) predicate.Device

DeviceMeta applies equality check predicate on the "deviceMeta" field. It's identical to DeviceMetaEQ.

func DeviceMetaContains

func DeviceMetaContains(v string) predicate.Device

DeviceMetaContains applies the Contains predicate on the "deviceMeta" field.

func DeviceMetaContainsFold

func DeviceMetaContainsFold(v string) predicate.Device

DeviceMetaContainsFold applies the ContainsFold predicate on the "deviceMeta" field.

func DeviceMetaEQ

func DeviceMetaEQ(v string) predicate.Device

DeviceMetaEQ applies the EQ predicate on the "deviceMeta" field.

func DeviceMetaEqualFold

func DeviceMetaEqualFold(v string) predicate.Device

DeviceMetaEqualFold applies the EqualFold predicate on the "deviceMeta" field.

func DeviceMetaGT

func DeviceMetaGT(v string) predicate.Device

DeviceMetaGT applies the GT predicate on the "deviceMeta" field.

func DeviceMetaGTE

func DeviceMetaGTE(v string) predicate.Device

DeviceMetaGTE applies the GTE predicate on the "deviceMeta" field.

func DeviceMetaHasPrefix

func DeviceMetaHasPrefix(v string) predicate.Device

DeviceMetaHasPrefix applies the HasPrefix predicate on the "deviceMeta" field.

func DeviceMetaHasSuffix

func DeviceMetaHasSuffix(v string) predicate.Device

DeviceMetaHasSuffix applies the HasSuffix predicate on the "deviceMeta" field.

func DeviceMetaIn

func DeviceMetaIn(vs ...string) predicate.Device

DeviceMetaIn applies the In predicate on the "deviceMeta" field.

func DeviceMetaLT

func DeviceMetaLT(v string) predicate.Device

DeviceMetaLT applies the LT predicate on the "deviceMeta" field.

func DeviceMetaLTE

func DeviceMetaLTE(v string) predicate.Device

DeviceMetaLTE applies the LTE predicate on the "deviceMeta" field.

func DeviceMetaNEQ

func DeviceMetaNEQ(v string) predicate.Device

DeviceMetaNEQ applies the NEQ predicate on the "deviceMeta" field.

func DeviceMetaNotIn

func DeviceMetaNotIn(vs ...string) predicate.Device

DeviceMetaNotIn applies the NotIn predicate on the "deviceMeta" field.

func DeviceName

func DeviceName(v string) predicate.Device

DeviceName applies equality check predicate on the "deviceName" field. It's identical to DeviceNameEQ.

func DeviceNameContains

func DeviceNameContains(v string) predicate.Device

DeviceNameContains applies the Contains predicate on the "deviceName" field.

func DeviceNameContainsFold

func DeviceNameContainsFold(v string) predicate.Device

DeviceNameContainsFold applies the ContainsFold predicate on the "deviceName" field.

func DeviceNameEQ

func DeviceNameEQ(v string) predicate.Device

DeviceNameEQ applies the EQ predicate on the "deviceName" field.

func DeviceNameEqualFold

func DeviceNameEqualFold(v string) predicate.Device

DeviceNameEqualFold applies the EqualFold predicate on the "deviceName" field.

func DeviceNameGT

func DeviceNameGT(v string) predicate.Device

DeviceNameGT applies the GT predicate on the "deviceName" field.

func DeviceNameGTE

func DeviceNameGTE(v string) predicate.Device

DeviceNameGTE applies the GTE predicate on the "deviceName" field.

func DeviceNameHasPrefix

func DeviceNameHasPrefix(v string) predicate.Device

DeviceNameHasPrefix applies the HasPrefix predicate on the "deviceName" field.

func DeviceNameHasSuffix

func DeviceNameHasSuffix(v string) predicate.Device

DeviceNameHasSuffix applies the HasSuffix predicate on the "deviceName" field.

func DeviceNameIn

func DeviceNameIn(vs ...string) predicate.Device

DeviceNameIn applies the In predicate on the "deviceName" field.

func DeviceNameLT

func DeviceNameLT(v string) predicate.Device

DeviceNameLT applies the LT predicate on the "deviceName" field.

func DeviceNameLTE

func DeviceNameLTE(v string) predicate.Device

DeviceNameLTE applies the LTE predicate on the "deviceName" field.

func DeviceNameNEQ

func DeviceNameNEQ(v string) predicate.Device

DeviceNameNEQ applies the NEQ predicate on the "deviceName" field.

func DeviceNameNotIn

func DeviceNameNotIn(vs ...string) predicate.Device

DeviceNameNotIn applies the NotIn predicate on the "deviceName" field.

func HasUser

func HasUser() predicate.Device

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Device

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

func ID

func ID(id int) predicate.Device

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Device

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Device

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Device

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Device

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Device

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Device

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Identifier

func Identifier(v string) predicate.Device

Identifier applies equality check predicate on the "identifier" field. It's identical to IdentifierEQ.

func IdentifierContains

func IdentifierContains(v string) predicate.Device

IdentifierContains applies the Contains predicate on the "identifier" field.

func IdentifierContainsFold

func IdentifierContainsFold(v string) predicate.Device

IdentifierContainsFold applies the ContainsFold predicate on the "identifier" field.

func IdentifierEQ

func IdentifierEQ(v string) predicate.Device

IdentifierEQ applies the EQ predicate on the "identifier" field.

func IdentifierEqualFold

func IdentifierEqualFold(v string) predicate.Device

IdentifierEqualFold applies the EqualFold predicate on the "identifier" field.

func IdentifierGT

func IdentifierGT(v string) predicate.Device

IdentifierGT applies the GT predicate on the "identifier" field.

func IdentifierGTE

func IdentifierGTE(v string) predicate.Device

IdentifierGTE applies the GTE predicate on the "identifier" field.

func IdentifierHasPrefix

func IdentifierHasPrefix(v string) predicate.Device

IdentifierHasPrefix applies the HasPrefix predicate on the "identifier" field.

func IdentifierHasSuffix

func IdentifierHasSuffix(v string) predicate.Device

IdentifierHasSuffix applies the HasSuffix predicate on the "identifier" field.

func IdentifierIn

func IdentifierIn(vs ...string) predicate.Device

IdentifierIn applies the In predicate on the "identifier" field.

func IdentifierLT

func IdentifierLT(v string) predicate.Device

IdentifierLT applies the LT predicate on the "identifier" field.

func IdentifierLTE

func IdentifierLTE(v string) predicate.Device

IdentifierLTE applies the LTE predicate on the "identifier" field.

func IdentifierNEQ

func IdentifierNEQ(v string) predicate.Device

IdentifierNEQ applies the NEQ predicate on the "identifier" field.

func IdentifierNotIn

func IdentifierNotIn(vs ...string) predicate.Device

IdentifierNotIn applies the NotIn predicate on the "identifier" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Device) predicate.Device

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Device

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Device

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Device

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Device

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Device

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Device

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Device

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

func UpdatedAtNotIn

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

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