monitor

package
v0.0.0-...-65a4bde Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the monitor type in the database.
	Label = "monitor"
	// 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"
	// FieldSerial holds the string denoting the serial field in the database.
	FieldSerial = "serial"
	// FieldWeekOfManufacture holds the string denoting the week_of_manufacture field in the database.
	FieldWeekOfManufacture = "week_of_manufacture"
	// FieldYearOfManufacture holds the string denoting the year_of_manufacture field in the database.
	FieldYearOfManufacture = "year_of_manufacture"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// AgentFieldID holds the string denoting the ID field of the Agent.
	AgentFieldID = "oid"
	// Table holds the table name of the monitor in the database.
	Table = "monitors"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "monitors"
	// OwnerInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	OwnerInverseTable = "agents"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "agent_monitors"
)

Variables

Columns holds all SQL columns for monitor fields.

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

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

Functions

func And

func And(predicates ...predicate.Monitor) predicate.Monitor

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.Monitor

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Agent) predicate.Monitor

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

func ID

func ID(id int) predicate.Monitor

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Monitor

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Monitor

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Monitor

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Monitor

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Monitor

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Monitor

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Manufacturer

func Manufacturer(v string) predicate.Monitor

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

func ManufacturerContains

func ManufacturerContains(v string) predicate.Monitor

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

func ManufacturerContainsFold

func ManufacturerContainsFold(v string) predicate.Monitor

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

func ManufacturerEQ

func ManufacturerEQ(v string) predicate.Monitor

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

func ManufacturerEqualFold

func ManufacturerEqualFold(v string) predicate.Monitor

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

func ManufacturerGT

func ManufacturerGT(v string) predicate.Monitor

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

func ManufacturerGTE

func ManufacturerGTE(v string) predicate.Monitor

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

func ManufacturerHasPrefix

func ManufacturerHasPrefix(v string) predicate.Monitor

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

func ManufacturerHasSuffix

func ManufacturerHasSuffix(v string) predicate.Monitor

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

func ManufacturerIn

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

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

func ManufacturerIsNil

func ManufacturerIsNil() predicate.Monitor

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

func ManufacturerLT

func ManufacturerLT(v string) predicate.Monitor

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

func ManufacturerLTE

func ManufacturerLTE(v string) predicate.Monitor

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

func ManufacturerNEQ

func ManufacturerNEQ(v string) predicate.Monitor

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

func ManufacturerNotIn

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

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

func ManufacturerNotNil

func ManufacturerNotNil() predicate.Monitor

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

func Model

func Model(v string) predicate.Monitor

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

func ModelContains

func ModelContains(v string) predicate.Monitor

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

func ModelContainsFold

func ModelContainsFold(v string) predicate.Monitor

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

func ModelEQ

func ModelEQ(v string) predicate.Monitor

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

func ModelEqualFold

func ModelEqualFold(v string) predicate.Monitor

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

func ModelGT

func ModelGT(v string) predicate.Monitor

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

func ModelGTE

func ModelGTE(v string) predicate.Monitor

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

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Monitor

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

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Monitor

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

func ModelIn

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

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

func ModelIsNil

func ModelIsNil() predicate.Monitor

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

func ModelLT

func ModelLT(v string) predicate.Monitor

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

func ModelLTE

func ModelLTE(v string) predicate.Monitor

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

func ModelNEQ

func ModelNEQ(v string) predicate.Monitor

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

func ModelNotIn

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

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

func ModelNotNil

func ModelNotNil() predicate.Monitor

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Monitor) predicate.Monitor

Or groups predicates with the OR operator between them.

func Serial

func Serial(v string) predicate.Monitor

Serial applies equality check predicate on the "serial" field. It's identical to SerialEQ.

func SerialContains

func SerialContains(v string) predicate.Monitor

SerialContains applies the Contains predicate on the "serial" field.

func SerialContainsFold

func SerialContainsFold(v string) predicate.Monitor

SerialContainsFold applies the ContainsFold predicate on the "serial" field.

func SerialEQ

func SerialEQ(v string) predicate.Monitor

SerialEQ applies the EQ predicate on the "serial" field.

func SerialEqualFold

func SerialEqualFold(v string) predicate.Monitor

SerialEqualFold applies the EqualFold predicate on the "serial" field.

func SerialGT

func SerialGT(v string) predicate.Monitor

SerialGT applies the GT predicate on the "serial" field.

func SerialGTE

func SerialGTE(v string) predicate.Monitor

SerialGTE applies the GTE predicate on the "serial" field.

func SerialHasPrefix

func SerialHasPrefix(v string) predicate.Monitor

SerialHasPrefix applies the HasPrefix predicate on the "serial" field.

func SerialHasSuffix

func SerialHasSuffix(v string) predicate.Monitor

SerialHasSuffix applies the HasSuffix predicate on the "serial" field.

func SerialIn

func SerialIn(vs ...string) predicate.Monitor

SerialIn applies the In predicate on the "serial" field.

func SerialIsNil

func SerialIsNil() predicate.Monitor

SerialIsNil applies the IsNil predicate on the "serial" field.

func SerialLT

func SerialLT(v string) predicate.Monitor

SerialLT applies the LT predicate on the "serial" field.

func SerialLTE

func SerialLTE(v string) predicate.Monitor

SerialLTE applies the LTE predicate on the "serial" field.

func SerialNEQ

func SerialNEQ(v string) predicate.Monitor

SerialNEQ applies the NEQ predicate on the "serial" field.

func SerialNotIn

func SerialNotIn(vs ...string) predicate.Monitor

SerialNotIn applies the NotIn predicate on the "serial" field.

func SerialNotNil

func SerialNotNil() predicate.Monitor

SerialNotNil applies the NotNil predicate on the "serial" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WeekOfManufacture

func WeekOfManufacture(v string) predicate.Monitor

WeekOfManufacture applies equality check predicate on the "week_of_manufacture" field. It's identical to WeekOfManufactureEQ.

func WeekOfManufactureContains

func WeekOfManufactureContains(v string) predicate.Monitor

WeekOfManufactureContains applies the Contains predicate on the "week_of_manufacture" field.

func WeekOfManufactureContainsFold

func WeekOfManufactureContainsFold(v string) predicate.Monitor

WeekOfManufactureContainsFold applies the ContainsFold predicate on the "week_of_manufacture" field.

func WeekOfManufactureEQ

func WeekOfManufactureEQ(v string) predicate.Monitor

WeekOfManufactureEQ applies the EQ predicate on the "week_of_manufacture" field.

func WeekOfManufactureEqualFold

func WeekOfManufactureEqualFold(v string) predicate.Monitor

WeekOfManufactureEqualFold applies the EqualFold predicate on the "week_of_manufacture" field.

func WeekOfManufactureGT

func WeekOfManufactureGT(v string) predicate.Monitor

WeekOfManufactureGT applies the GT predicate on the "week_of_manufacture" field.

func WeekOfManufactureGTE

func WeekOfManufactureGTE(v string) predicate.Monitor

WeekOfManufactureGTE applies the GTE predicate on the "week_of_manufacture" field.

func WeekOfManufactureHasPrefix

func WeekOfManufactureHasPrefix(v string) predicate.Monitor

WeekOfManufactureHasPrefix applies the HasPrefix predicate on the "week_of_manufacture" field.

func WeekOfManufactureHasSuffix

func WeekOfManufactureHasSuffix(v string) predicate.Monitor

WeekOfManufactureHasSuffix applies the HasSuffix predicate on the "week_of_manufacture" field.

func WeekOfManufactureIn

func WeekOfManufactureIn(vs ...string) predicate.Monitor

WeekOfManufactureIn applies the In predicate on the "week_of_manufacture" field.

func WeekOfManufactureIsNil

func WeekOfManufactureIsNil() predicate.Monitor

WeekOfManufactureIsNil applies the IsNil predicate on the "week_of_manufacture" field.

func WeekOfManufactureLT

func WeekOfManufactureLT(v string) predicate.Monitor

WeekOfManufactureLT applies the LT predicate on the "week_of_manufacture" field.

func WeekOfManufactureLTE

func WeekOfManufactureLTE(v string) predicate.Monitor

WeekOfManufactureLTE applies the LTE predicate on the "week_of_manufacture" field.

func WeekOfManufactureNEQ

func WeekOfManufactureNEQ(v string) predicate.Monitor

WeekOfManufactureNEQ applies the NEQ predicate on the "week_of_manufacture" field.

func WeekOfManufactureNotIn

func WeekOfManufactureNotIn(vs ...string) predicate.Monitor

WeekOfManufactureNotIn applies the NotIn predicate on the "week_of_manufacture" field.

func WeekOfManufactureNotNil

func WeekOfManufactureNotNil() predicate.Monitor

WeekOfManufactureNotNil applies the NotNil predicate on the "week_of_manufacture" field.

func YearOfManufacture

func YearOfManufacture(v string) predicate.Monitor

YearOfManufacture applies equality check predicate on the "year_of_manufacture" field. It's identical to YearOfManufactureEQ.

func YearOfManufactureContains

func YearOfManufactureContains(v string) predicate.Monitor

YearOfManufactureContains applies the Contains predicate on the "year_of_manufacture" field.

func YearOfManufactureContainsFold

func YearOfManufactureContainsFold(v string) predicate.Monitor

YearOfManufactureContainsFold applies the ContainsFold predicate on the "year_of_manufacture" field.

func YearOfManufactureEQ

func YearOfManufactureEQ(v string) predicate.Monitor

YearOfManufactureEQ applies the EQ predicate on the "year_of_manufacture" field.

func YearOfManufactureEqualFold

func YearOfManufactureEqualFold(v string) predicate.Monitor

YearOfManufactureEqualFold applies the EqualFold predicate on the "year_of_manufacture" field.

func YearOfManufactureGT

func YearOfManufactureGT(v string) predicate.Monitor

YearOfManufactureGT applies the GT predicate on the "year_of_manufacture" field.

func YearOfManufactureGTE

func YearOfManufactureGTE(v string) predicate.Monitor

YearOfManufactureGTE applies the GTE predicate on the "year_of_manufacture" field.

func YearOfManufactureHasPrefix

func YearOfManufactureHasPrefix(v string) predicate.Monitor

YearOfManufactureHasPrefix applies the HasPrefix predicate on the "year_of_manufacture" field.

func YearOfManufactureHasSuffix

func YearOfManufactureHasSuffix(v string) predicate.Monitor

YearOfManufactureHasSuffix applies the HasSuffix predicate on the "year_of_manufacture" field.

func YearOfManufactureIn

func YearOfManufactureIn(vs ...string) predicate.Monitor

YearOfManufactureIn applies the In predicate on the "year_of_manufacture" field.

func YearOfManufactureIsNil

func YearOfManufactureIsNil() predicate.Monitor

YearOfManufactureIsNil applies the IsNil predicate on the "year_of_manufacture" field.

func YearOfManufactureLT

func YearOfManufactureLT(v string) predicate.Monitor

YearOfManufactureLT applies the LT predicate on the "year_of_manufacture" field.

func YearOfManufactureLTE

func YearOfManufactureLTE(v string) predicate.Monitor

YearOfManufactureLTE applies the LTE predicate on the "year_of_manufacture" field.

func YearOfManufactureNEQ

func YearOfManufactureNEQ(v string) predicate.Monitor

YearOfManufactureNEQ applies the NEQ predicate on the "year_of_manufacture" field.

func YearOfManufactureNotIn

func YearOfManufactureNotIn(vs ...string) predicate.Monitor

YearOfManufactureNotIn applies the NotIn predicate on the "year_of_manufacture" field.

func YearOfManufactureNotNil

func YearOfManufactureNotNil() predicate.Monitor

YearOfManufactureNotNil applies the NotNil predicate on the "year_of_manufacture" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Monitor queries.

func ByID

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

ByID orders the results by the id field.

func ByManufacturer

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

ByManufacturer orders the results by the manufacturer field.

func ByModel

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

ByModel orders the results by the model field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func BySerial

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

BySerial orders the results by the serial field.

func ByWeekOfManufacture

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

ByWeekOfManufacture orders the results by the week_of_manufacture field.

func ByYearOfManufacture

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

ByYearOfManufacture orders the results by the year_of_manufacture field.

Jump to

Keyboard shortcuts

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