device

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 3 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"
	// FieldManufacturer holds the string denoting the manufacturer field in the database.
	FieldManufacturer = "manufacturer"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldMobile holds the string denoting the mobile field in the database.
	FieldMobile = "mobile"
	// FieldTablet holds the string denoting the tablet field in the database.
	FieldTablet = "tablet"
	// FieldDesktop holds the string denoting the desktop field in the database.
	FieldDesktop = "desktop"
	// FieldProperties holds the string denoting the properties field in the database.
	FieldProperties = "properties"

	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"

	// Table holds the table name of the device in the database.
	Table = "devices"
	// EventsTable is the table the holds the events relation/edge.
	EventsTable = "events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// EventsColumn is the table column denoting the events relation/edge.
	EventsColumn = "event_device"
)

Variables

Columns holds all SQL columns for device fields.

Functions

func And

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

And groups list of predicates with the AND operator between them.

func Desktop

func Desktop(v bool) predicate.Device

Desktop applies equality check predicate on the "desktop" field. It's identical to DesktopEQ.

func DesktopEQ

func DesktopEQ(v bool) predicate.Device

DesktopEQ applies the EQ predicate on the "desktop" field.

func DesktopIsNil

func DesktopIsNil() predicate.Device

DesktopIsNil applies the IsNil predicate on the "desktop" field.

func DesktopNEQ

func DesktopNEQ(v bool) predicate.Device

DesktopNEQ applies the NEQ predicate on the "desktop" field.

func DesktopNotNil

func DesktopNotNil() predicate.Device

DesktopNotNil applies the NotNil predicate on the "desktop" field.

func HasEvents

func HasEvents() predicate.Device

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Device

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

func ID

func ID(id string) predicate.Device

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.Device

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Device

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Device

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Device

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Device

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Device

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Manufacturer

func Manufacturer(v string) predicate.Device

Manufacturer applies equality check predicate on the "manufacturer" field. It's identical to ManufacturerEQ.

func ManufacturerContains

func ManufacturerContains(v string) predicate.Device

ManufacturerContains applies the Contains predicate on the "manufacturer" field.

func ManufacturerContainsFold

func ManufacturerContainsFold(v string) predicate.Device

ManufacturerContainsFold applies the ContainsFold predicate on the "manufacturer" field.

func ManufacturerEQ

func ManufacturerEQ(v string) predicate.Device

ManufacturerEQ applies the EQ predicate on the "manufacturer" field.

func ManufacturerEqualFold

func ManufacturerEqualFold(v string) predicate.Device

ManufacturerEqualFold applies the EqualFold predicate on the "manufacturer" field.

func ManufacturerGT

func ManufacturerGT(v string) predicate.Device

ManufacturerGT applies the GT predicate on the "manufacturer" field.

func ManufacturerGTE

func ManufacturerGTE(v string) predicate.Device

ManufacturerGTE applies the GTE predicate on the "manufacturer" field.

func ManufacturerHasPrefix

func ManufacturerHasPrefix(v string) predicate.Device

ManufacturerHasPrefix applies the HasPrefix predicate on the "manufacturer" field.

func ManufacturerHasSuffix

func ManufacturerHasSuffix(v string) predicate.Device

ManufacturerHasSuffix applies the HasSuffix predicate on the "manufacturer" field.

func ManufacturerIn

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

ManufacturerIn applies the In predicate on the "manufacturer" field.

func ManufacturerIsNil

func ManufacturerIsNil() predicate.Device

ManufacturerIsNil applies the IsNil predicate on the "manufacturer" field.

func ManufacturerLT

func ManufacturerLT(v string) predicate.Device

ManufacturerLT applies the LT predicate on the "manufacturer" field.

func ManufacturerLTE

func ManufacturerLTE(v string) predicate.Device

ManufacturerLTE applies the LTE predicate on the "manufacturer" field.

func ManufacturerNEQ

func ManufacturerNEQ(v string) predicate.Device

ManufacturerNEQ applies the NEQ predicate on the "manufacturer" field.

func ManufacturerNotIn

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

ManufacturerNotIn applies the NotIn predicate on the "manufacturer" field.

func ManufacturerNotNil

func ManufacturerNotNil() predicate.Device

ManufacturerNotNil applies the NotNil predicate on the "manufacturer" field.

func Mobile

func Mobile(v bool) predicate.Device

Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.

func MobileEQ

func MobileEQ(v bool) predicate.Device

MobileEQ applies the EQ predicate on the "mobile" field.

func MobileIsNil

func MobileIsNil() predicate.Device

MobileIsNil applies the IsNil predicate on the "mobile" field.

func MobileNEQ

func MobileNEQ(v bool) predicate.Device

MobileNEQ applies the NEQ predicate on the "mobile" field.

func MobileNotNil

func MobileNotNil() predicate.Device

MobileNotNil applies the NotNil predicate on the "mobile" field.

func Model

func Model(v string) predicate.Device

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.Device

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.Device

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.Device

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.Device

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.Device

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.Device

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Device

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Device

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

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

ModelIn applies the In predicate on the "model" field.

func ModelIsNil

func ModelIsNil() predicate.Device

ModelIsNil applies the IsNil predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.Device

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.Device

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.Device

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

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

ModelNotIn applies the NotIn predicate on the "model" field.

func ModelNotNil

func ModelNotNil() predicate.Device

ModelNotNil applies the NotNil predicate on the "model" field.

func Name

func Name(v string) predicate.Device

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

func NameContains

func NameContains(v string) predicate.Device

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

func NameContainsFold

func NameContainsFold(v string) predicate.Device

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

func NameEQ

func NameEQ(v string) predicate.Device

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

func NameEqualFold

func NameEqualFold(v string) predicate.Device

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

func NameGT

func NameGT(v string) predicate.Device

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

func NameGTE

func NameGTE(v string) predicate.Device

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Device

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Device

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.Device

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Device

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

func NameLTE

func NameLTE(v string) predicate.Device

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

func NameNEQ

func NameNEQ(v string) predicate.Device

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.Device

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups list of predicates with the OR operator between them.

func PropertiesIsNil

func PropertiesIsNil() predicate.Device

PropertiesIsNil applies the IsNil predicate on the "properties" field.

func PropertiesNotNil

func PropertiesNotNil() predicate.Device

PropertiesNotNil applies the NotNil predicate on the "properties" field.

func Tablet

func Tablet(v bool) predicate.Device

Tablet applies equality check predicate on the "tablet" field. It's identical to TabletEQ.

func TabletEQ

func TabletEQ(v bool) predicate.Device

TabletEQ applies the EQ predicate on the "tablet" field.

func TabletIsNil

func TabletIsNil() predicate.Device

TabletIsNil applies the IsNil predicate on the "tablet" field.

func TabletNEQ

func TabletNEQ(v bool) predicate.Device

TabletNEQ applies the NEQ predicate on the "tablet" field.

func TabletNotNil

func TabletNotNil() predicate.Device

TabletNotNil applies the NotNil predicate on the "tablet" field.

func Type

func Type(v string) predicate.Device

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Device

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Device

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Device

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Device

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Device

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Device

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Device

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Device

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

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

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.Device

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Device

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Device

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Device

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

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

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.Device

TypeNotNil applies the NotNil predicate on the "type" field.

func Version

func Version(v string) predicate.Device

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Device

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Device

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Device

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Device

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Device

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Device

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Device

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Device

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

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

VersionIn applies the In predicate on the "version" field.

func VersionIsNil

func VersionIsNil() predicate.Device

VersionIsNil applies the IsNil predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Device

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Device

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Device

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

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

VersionNotIn applies the NotIn predicate on the "version" field.

func VersionNotNil

func VersionNotNil() predicate.Device

VersionNotNil applies the NotNil predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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