deviceevent

package
v0.0.0-...-24d6c83 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the deviceevent type in the database.
	Label = "device_event"
	// 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldIotID holds the string denoting the iotid field in the database.
	FieldIotID = "iot_id"
	// FieldEventType holds the string denoting the eventtype field in the database.
	FieldEventType = "event_type"
	// FieldIdentifier holds the string denoting the identifier field in the database.
	FieldIdentifier = "identifier"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldOutputData holds the string denoting the outputdata field in the database.
	FieldOutputData = "output_data"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// Table holds the table name of the deviceevent in the database.
	Table = "thing_device_events"
)

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
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus uint8
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort uint32
	// DefaultEventType holds the default value on creation for the "eventType" field.
	DefaultEventType string
)

Columns holds all SQL columns for deviceevent fields.

Functions

func And

func And(predicates ...predicate.DeviceEvent) predicate.DeviceEvent

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.DeviceEvent

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.DeviceEvent

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.DeviceEvent

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.DeviceEvent

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.DeviceEvent

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.DeviceEvent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.DeviceEvent

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

func CreatedAtNotIn

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

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

func EventType

func EventType(v string) predicate.DeviceEvent

EventType applies equality check predicate on the "eventType" field. It's identical to EventTypeEQ.

func EventTypeContains

func EventTypeContains(v string) predicate.DeviceEvent

EventTypeContains applies the Contains predicate on the "eventType" field.

func EventTypeContainsFold

func EventTypeContainsFold(v string) predicate.DeviceEvent

EventTypeContainsFold applies the ContainsFold predicate on the "eventType" field.

func EventTypeEQ

func EventTypeEQ(v string) predicate.DeviceEvent

EventTypeEQ applies the EQ predicate on the "eventType" field.

func EventTypeEqualFold

func EventTypeEqualFold(v string) predicate.DeviceEvent

EventTypeEqualFold applies the EqualFold predicate on the "eventType" field.

func EventTypeGT

func EventTypeGT(v string) predicate.DeviceEvent

EventTypeGT applies the GT predicate on the "eventType" field.

func EventTypeGTE

func EventTypeGTE(v string) predicate.DeviceEvent

EventTypeGTE applies the GTE predicate on the "eventType" field.

func EventTypeHasPrefix

func EventTypeHasPrefix(v string) predicate.DeviceEvent

EventTypeHasPrefix applies the HasPrefix predicate on the "eventType" field.

func EventTypeHasSuffix

func EventTypeHasSuffix(v string) predicate.DeviceEvent

EventTypeHasSuffix applies the HasSuffix predicate on the "eventType" field.

func EventTypeIn

func EventTypeIn(vs ...string) predicate.DeviceEvent

EventTypeIn applies the In predicate on the "eventType" field.

func EventTypeIsNil

func EventTypeIsNil() predicate.DeviceEvent

EventTypeIsNil applies the IsNil predicate on the "eventType" field.

func EventTypeLT

func EventTypeLT(v string) predicate.DeviceEvent

EventTypeLT applies the LT predicate on the "eventType" field.

func EventTypeLTE

func EventTypeLTE(v string) predicate.DeviceEvent

EventTypeLTE applies the LTE predicate on the "eventType" field.

func EventTypeNEQ

func EventTypeNEQ(v string) predicate.DeviceEvent

EventTypeNEQ applies the NEQ predicate on the "eventType" field.

func EventTypeNotIn

func EventTypeNotIn(vs ...string) predicate.DeviceEvent

EventTypeNotIn applies the NotIn predicate on the "eventType" field.

func EventTypeNotNil

func EventTypeNotNil() predicate.DeviceEvent

EventTypeNotNil applies the NotNil predicate on the "eventType" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.DeviceEvent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.DeviceEvent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.DeviceEvent

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.DeviceEvent

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.DeviceEvent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.DeviceEvent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.DeviceEvent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.DeviceEvent

IDNotIn applies the NotIn predicate on the ID field.

func Identifier

func Identifier(v string) predicate.DeviceEvent

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

func IdentifierContains

func IdentifierContains(v string) predicate.DeviceEvent

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

func IdentifierContainsFold

func IdentifierContainsFold(v string) predicate.DeviceEvent

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

func IdentifierEQ

func IdentifierEQ(v string) predicate.DeviceEvent

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

func IdentifierEqualFold

func IdentifierEqualFold(v string) predicate.DeviceEvent

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

func IdentifierGT

func IdentifierGT(v string) predicate.DeviceEvent

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

func IdentifierGTE

func IdentifierGTE(v string) predicate.DeviceEvent

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

func IdentifierHasPrefix

func IdentifierHasPrefix(v string) predicate.DeviceEvent

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

func IdentifierHasSuffix

func IdentifierHasSuffix(v string) predicate.DeviceEvent

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

func IdentifierIn

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

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

func IdentifierLT

func IdentifierLT(v string) predicate.DeviceEvent

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

func IdentifierLTE

func IdentifierLTE(v string) predicate.DeviceEvent

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

func IdentifierNEQ

func IdentifierNEQ(v string) predicate.DeviceEvent

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

func IdentifierNotIn

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

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

func IotID

func IotID(v string) predicate.DeviceEvent

IotID applies equality check predicate on the "iotID" field. It's identical to IotIDEQ.

func IotIDContains

func IotIDContains(v string) predicate.DeviceEvent

IotIDContains applies the Contains predicate on the "iotID" field.

func IotIDContainsFold

func IotIDContainsFold(v string) predicate.DeviceEvent

IotIDContainsFold applies the ContainsFold predicate on the "iotID" field.

func IotIDEQ

func IotIDEQ(v string) predicate.DeviceEvent

IotIDEQ applies the EQ predicate on the "iotID" field.

func IotIDEqualFold

func IotIDEqualFold(v string) predicate.DeviceEvent

IotIDEqualFold applies the EqualFold predicate on the "iotID" field.

func IotIDGT

func IotIDGT(v string) predicate.DeviceEvent

IotIDGT applies the GT predicate on the "iotID" field.

func IotIDGTE

func IotIDGTE(v string) predicate.DeviceEvent

IotIDGTE applies the GTE predicate on the "iotID" field.

func IotIDHasPrefix

func IotIDHasPrefix(v string) predicate.DeviceEvent

IotIDHasPrefix applies the HasPrefix predicate on the "iotID" field.

func IotIDHasSuffix

func IotIDHasSuffix(v string) predicate.DeviceEvent

IotIDHasSuffix applies the HasSuffix predicate on the "iotID" field.

func IotIDIn

func IotIDIn(vs ...string) predicate.DeviceEvent

IotIDIn applies the In predicate on the "iotID" field.

func IotIDLT

func IotIDLT(v string) predicate.DeviceEvent

IotIDLT applies the LT predicate on the "iotID" field.

func IotIDLTE

func IotIDLTE(v string) predicate.DeviceEvent

IotIDLTE applies the LTE predicate on the "iotID" field.

func IotIDNEQ

func IotIDNEQ(v string) predicate.DeviceEvent

IotIDNEQ applies the NEQ predicate on the "iotID" field.

func IotIDNotIn

func IotIDNotIn(vs ...string) predicate.DeviceEvent

IotIDNotIn applies the NotIn predicate on the "iotID" field.

func Name

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

func NameContains

func NameContains(v string) predicate.DeviceEvent

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

func NameContainsFold

func NameContainsFold(v string) predicate.DeviceEvent

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

func NameEQ

func NameEQ(v string) predicate.DeviceEvent

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

func NameEqualFold

func NameEqualFold(v string) predicate.DeviceEvent

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

func NameGT

func NameGT(v string) predicate.DeviceEvent

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

func NameGTE

func NameGTE(v string) predicate.DeviceEvent

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.DeviceEvent

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.DeviceEvent

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.DeviceEvent

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

func NameLTE

func NameLTE(v string) predicate.DeviceEvent

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

func NameNEQ

func NameNEQ(v string) predicate.DeviceEvent

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

func NameNotIn

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

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.DeviceEvent) predicate.DeviceEvent

Or groups predicates with the OR operator between them.

func OutputData

func OutputData(v string) predicate.DeviceEvent

OutputData applies equality check predicate on the "outputData" field. It's identical to OutputDataEQ.

func OutputDataContains

func OutputDataContains(v string) predicate.DeviceEvent

OutputDataContains applies the Contains predicate on the "outputData" field.

func OutputDataContainsFold

func OutputDataContainsFold(v string) predicate.DeviceEvent

OutputDataContainsFold applies the ContainsFold predicate on the "outputData" field.

func OutputDataEQ

func OutputDataEQ(v string) predicate.DeviceEvent

OutputDataEQ applies the EQ predicate on the "outputData" field.

func OutputDataEqualFold

func OutputDataEqualFold(v string) predicate.DeviceEvent

OutputDataEqualFold applies the EqualFold predicate on the "outputData" field.

func OutputDataGT

func OutputDataGT(v string) predicate.DeviceEvent

OutputDataGT applies the GT predicate on the "outputData" field.

func OutputDataGTE

func OutputDataGTE(v string) predicate.DeviceEvent

OutputDataGTE applies the GTE predicate on the "outputData" field.

func OutputDataHasPrefix

func OutputDataHasPrefix(v string) predicate.DeviceEvent

OutputDataHasPrefix applies the HasPrefix predicate on the "outputData" field.

func OutputDataHasSuffix

func OutputDataHasSuffix(v string) predicate.DeviceEvent

OutputDataHasSuffix applies the HasSuffix predicate on the "outputData" field.

func OutputDataIn

func OutputDataIn(vs ...string) predicate.DeviceEvent

OutputDataIn applies the In predicate on the "outputData" field.

func OutputDataIsNil

func OutputDataIsNil() predicate.DeviceEvent

OutputDataIsNil applies the IsNil predicate on the "outputData" field.

func OutputDataLT

func OutputDataLT(v string) predicate.DeviceEvent

OutputDataLT applies the LT predicate on the "outputData" field.

func OutputDataLTE

func OutputDataLTE(v string) predicate.DeviceEvent

OutputDataLTE applies the LTE predicate on the "outputData" field.

func OutputDataNEQ

func OutputDataNEQ(v string) predicate.DeviceEvent

OutputDataNEQ applies the NEQ predicate on the "outputData" field.

func OutputDataNotIn

func OutputDataNotIn(vs ...string) predicate.DeviceEvent

OutputDataNotIn applies the NotIn predicate on the "outputData" field.

func OutputDataNotNil

func OutputDataNotNil() predicate.DeviceEvent

OutputDataNotNil applies the NotNil predicate on the "outputData" field.

func Sort

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortEQ

func SortEQ(v uint32) predicate.DeviceEvent

SortEQ applies the EQ predicate on the "sort" field.

func SortGT

func SortGT(v uint32) predicate.DeviceEvent

SortGT applies the GT predicate on the "sort" field.

func SortGTE

func SortGTE(v uint32) predicate.DeviceEvent

SortGTE applies the GTE predicate on the "sort" field.

func SortIn

func SortIn(vs ...uint32) predicate.DeviceEvent

SortIn applies the In predicate on the "sort" field.

func SortLT

func SortLT(v uint32) predicate.DeviceEvent

SortLT applies the LT predicate on the "sort" field.

func SortLTE

func SortLTE(v uint32) predicate.DeviceEvent

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

func SortNEQ(v uint32) predicate.DeviceEvent

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

func SortNotIn(vs ...uint32) predicate.DeviceEvent

SortNotIn applies the NotIn predicate on the "sort" field.

func Status

func Status(v uint8) predicate.DeviceEvent

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v uint8) predicate.DeviceEvent

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v uint8) predicate.DeviceEvent

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v uint8) predicate.DeviceEvent

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...uint8) predicate.DeviceEvent

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.DeviceEvent

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.DeviceEvent

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v uint8) predicate.DeviceEvent

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v uint8) predicate.DeviceEvent

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.DeviceEvent

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.DeviceEvent

StatusNotNil applies the NotNil predicate on the "status" field.

func Time

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeContains

func TimeContains(v string) predicate.DeviceEvent

TimeContains applies the Contains predicate on the "time" field.

func TimeContainsFold

func TimeContainsFold(v string) predicate.DeviceEvent

TimeContainsFold applies the ContainsFold predicate on the "time" field.

func TimeEQ

func TimeEQ(v string) predicate.DeviceEvent

TimeEQ applies the EQ predicate on the "time" field.

func TimeEqualFold

func TimeEqualFold(v string) predicate.DeviceEvent

TimeEqualFold applies the EqualFold predicate on the "time" field.

func TimeGT

func TimeGT(v string) predicate.DeviceEvent

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v string) predicate.DeviceEvent

TimeGTE applies the GTE predicate on the "time" field.

func TimeHasPrefix

func TimeHasPrefix(v string) predicate.DeviceEvent

TimeHasPrefix applies the HasPrefix predicate on the "time" field.

func TimeHasSuffix

func TimeHasSuffix(v string) predicate.DeviceEvent

TimeHasSuffix applies the HasSuffix predicate on the "time" field.

func TimeIn

func TimeIn(vs ...string) predicate.DeviceEvent

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v string) predicate.DeviceEvent

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v string) predicate.DeviceEvent

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v string) predicate.DeviceEvent

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...string) predicate.DeviceEvent

TimeNotIn applies the NotIn predicate on the "time" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.DeviceEvent

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.DeviceEvent

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.DeviceEvent

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.DeviceEvent

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.DeviceEvent

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.DeviceEvent

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.DeviceEvent

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

func UpdatedAtNotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the DeviceEvent queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEventType

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

ByEventType orders the results by the eventType field.

func ByID

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

ByID orders the results by the id field.

func ByIdentifier

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

ByIdentifier orders the results by the identifier field.

func ByIotID

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

ByIotID orders the results by the iotID field.

func ByName

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

ByName orders the results by the name field.

func ByOutputData

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

ByOutputData orders the results by the outputData field.

func BySort

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

BySort orders the results by the sort field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTime

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

ByTime orders the results by the time field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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