Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Monitor) predicate.Monitor
- func HasOwner() predicate.Monitor
- func HasOwnerWith(preds ...predicate.Agent) predicate.Monitor
- func ID(id int) predicate.Monitor
- func IDEQ(id int) predicate.Monitor
- func IDGT(id int) predicate.Monitor
- func IDGTE(id int) predicate.Monitor
- func IDIn(ids ...int) predicate.Monitor
- func IDLT(id int) predicate.Monitor
- func IDLTE(id int) predicate.Monitor
- func IDNEQ(id int) predicate.Monitor
- func IDNotIn(ids ...int) predicate.Monitor
- func Manufacturer(v string) predicate.Monitor
- func ManufacturerContains(v string) predicate.Monitor
- func ManufacturerContainsFold(v string) predicate.Monitor
- func ManufacturerEQ(v string) predicate.Monitor
- func ManufacturerEqualFold(v string) predicate.Monitor
- func ManufacturerGT(v string) predicate.Monitor
- func ManufacturerGTE(v string) predicate.Monitor
- func ManufacturerHasPrefix(v string) predicate.Monitor
- func ManufacturerHasSuffix(v string) predicate.Monitor
- func ManufacturerIn(vs ...string) predicate.Monitor
- func ManufacturerIsNil() predicate.Monitor
- func ManufacturerLT(v string) predicate.Monitor
- func ManufacturerLTE(v string) predicate.Monitor
- func ManufacturerNEQ(v string) predicate.Monitor
- func ManufacturerNotIn(vs ...string) predicate.Monitor
- func ManufacturerNotNil() predicate.Monitor
- func Model(v string) predicate.Monitor
- func ModelContains(v string) predicate.Monitor
- func ModelContainsFold(v string) predicate.Monitor
- func ModelEQ(v string) predicate.Monitor
- func ModelEqualFold(v string) predicate.Monitor
- func ModelGT(v string) predicate.Monitor
- func ModelGTE(v string) predicate.Monitor
- func ModelHasPrefix(v string) predicate.Monitor
- func ModelHasSuffix(v string) predicate.Monitor
- func ModelIn(vs ...string) predicate.Monitor
- func ModelIsNil() predicate.Monitor
- func ModelLT(v string) predicate.Monitor
- func ModelLTE(v string) predicate.Monitor
- func ModelNEQ(v string) predicate.Monitor
- func ModelNotIn(vs ...string) predicate.Monitor
- func ModelNotNil() predicate.Monitor
- func Not(p predicate.Monitor) predicate.Monitor
- func Or(predicates ...predicate.Monitor) predicate.Monitor
- func Serial(v string) predicate.Monitor
- func SerialContains(v string) predicate.Monitor
- func SerialContainsFold(v string) predicate.Monitor
- func SerialEQ(v string) predicate.Monitor
- func SerialEqualFold(v string) predicate.Monitor
- func SerialGT(v string) predicate.Monitor
- func SerialGTE(v string) predicate.Monitor
- func SerialHasPrefix(v string) predicate.Monitor
- func SerialHasSuffix(v string) predicate.Monitor
- func SerialIn(vs ...string) predicate.Monitor
- func SerialIsNil() predicate.Monitor
- func SerialLT(v string) predicate.Monitor
- func SerialLTE(v string) predicate.Monitor
- func SerialNEQ(v string) predicate.Monitor
- func SerialNotIn(vs ...string) predicate.Monitor
- func SerialNotNil() predicate.Monitor
- func ValidColumn(column string) bool
- func WeekOfManufacture(v string) predicate.Monitor
- func WeekOfManufactureContains(v string) predicate.Monitor
- func WeekOfManufactureContainsFold(v string) predicate.Monitor
- func WeekOfManufactureEQ(v string) predicate.Monitor
- func WeekOfManufactureEqualFold(v string) predicate.Monitor
- func WeekOfManufactureGT(v string) predicate.Monitor
- func WeekOfManufactureGTE(v string) predicate.Monitor
- func WeekOfManufactureHasPrefix(v string) predicate.Monitor
- func WeekOfManufactureHasSuffix(v string) predicate.Monitor
- func WeekOfManufactureIn(vs ...string) predicate.Monitor
- func WeekOfManufactureIsNil() predicate.Monitor
- func WeekOfManufactureLT(v string) predicate.Monitor
- func WeekOfManufactureLTE(v string) predicate.Monitor
- func WeekOfManufactureNEQ(v string) predicate.Monitor
- func WeekOfManufactureNotIn(vs ...string) predicate.Monitor
- func WeekOfManufactureNotNil() predicate.Monitor
- func YearOfManufacture(v string) predicate.Monitor
- func YearOfManufactureContains(v string) predicate.Monitor
- func YearOfManufactureContainsFold(v string) predicate.Monitor
- func YearOfManufactureEQ(v string) predicate.Monitor
- func YearOfManufactureEqualFold(v string) predicate.Monitor
- func YearOfManufactureGT(v string) predicate.Monitor
- func YearOfManufactureGTE(v string) predicate.Monitor
- func YearOfManufactureHasPrefix(v string) predicate.Monitor
- func YearOfManufactureHasSuffix(v string) predicate.Monitor
- func YearOfManufactureIn(vs ...string) predicate.Monitor
- func YearOfManufactureIsNil() predicate.Monitor
- func YearOfManufactureLT(v string) predicate.Monitor
- func YearOfManufactureLTE(v string) predicate.Monitor
- func YearOfManufactureNEQ(v string) predicate.Monitor
- func YearOfManufactureNotIn(vs ...string) predicate.Monitor
- func YearOfManufactureNotNil() predicate.Monitor
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByManufacturer(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySerial(opts ...sql.OrderTermOption) OrderOption
- func ByWeekOfManufacture(opts ...sql.OrderTermOption) OrderOption
- func ByYearOfManufacture(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldManufacturer, FieldModel, FieldSerial, FieldWeekOfManufacture, FieldYearOfManufacture, }
Columns holds all SQL columns for monitor fields.
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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Manufacturer ¶
Manufacturer applies equality check predicate on the "manufacturer" field. It's identical to ManufacturerEQ.
func ManufacturerContains ¶
ManufacturerContains applies the Contains predicate on the "manufacturer" field.
func ManufacturerContainsFold ¶
ManufacturerContainsFold applies the ContainsFold predicate on the "manufacturer" field.
func ManufacturerEQ ¶
ManufacturerEQ applies the EQ predicate on the "manufacturer" field.
func ManufacturerEqualFold ¶
ManufacturerEqualFold applies the EqualFold predicate on the "manufacturer" field.
func ManufacturerGT ¶
ManufacturerGT applies the GT predicate on the "manufacturer" field.
func ManufacturerGTE ¶
ManufacturerGTE applies the GTE predicate on the "manufacturer" field.
func ManufacturerHasPrefix ¶
ManufacturerHasPrefix applies the HasPrefix predicate on the "manufacturer" field.
func ManufacturerHasSuffix ¶
ManufacturerHasSuffix applies the HasSuffix predicate on the "manufacturer" field.
func ManufacturerIn ¶
ManufacturerIn applies the In predicate on the "manufacturer" field.
func ManufacturerIsNil ¶
ManufacturerIsNil applies the IsNil predicate on the "manufacturer" field.
func ManufacturerLT ¶
ManufacturerLT applies the LT predicate on the "manufacturer" field.
func ManufacturerLTE ¶
ManufacturerLTE applies the LTE predicate on the "manufacturer" field.
func ManufacturerNEQ ¶
ManufacturerNEQ applies the NEQ predicate on the "manufacturer" field.
func ManufacturerNotIn ¶
ManufacturerNotIn applies the NotIn predicate on the "manufacturer" field.
func ManufacturerNotNil ¶
ManufacturerNotNil applies the NotNil predicate on the "manufacturer" field.
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelIsNil ¶
ModelIsNil applies the IsNil predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func ModelNotNil ¶
ModelNotNil applies the NotNil predicate on the "model" field.
func Serial ¶
Serial applies equality check predicate on the "serial" field. It's identical to SerialEQ.
func SerialContains ¶
SerialContains applies the Contains predicate on the "serial" field.
func SerialContainsFold ¶
SerialContainsFold applies the ContainsFold predicate on the "serial" field.
func SerialEqualFold ¶
SerialEqualFold applies the EqualFold predicate on the "serial" field.
func SerialHasPrefix ¶
SerialHasPrefix applies the HasPrefix predicate on the "serial" field.
func SerialHasSuffix ¶
SerialHasSuffix applies the HasSuffix predicate on the "serial" field.
func SerialIsNil ¶
SerialIsNil applies the IsNil predicate on the "serial" field.
func SerialNotIn ¶
SerialNotIn applies the NotIn predicate on the "serial" field.
func SerialNotNil ¶
SerialNotNil applies the NotNil predicate on the "serial" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WeekOfManufacture ¶
WeekOfManufacture applies equality check predicate on the "week_of_manufacture" field. It's identical to WeekOfManufactureEQ.
func WeekOfManufactureContains ¶
WeekOfManufactureContains applies the Contains predicate on the "week_of_manufacture" field.
func WeekOfManufactureContainsFold ¶
WeekOfManufactureContainsFold applies the ContainsFold predicate on the "week_of_manufacture" field.
func WeekOfManufactureEQ ¶
WeekOfManufactureEQ applies the EQ predicate on the "week_of_manufacture" field.
func WeekOfManufactureEqualFold ¶
WeekOfManufactureEqualFold applies the EqualFold predicate on the "week_of_manufacture" field.
func WeekOfManufactureGT ¶
WeekOfManufactureGT applies the GT predicate on the "week_of_manufacture" field.
func WeekOfManufactureGTE ¶
WeekOfManufactureGTE applies the GTE predicate on the "week_of_manufacture" field.
func WeekOfManufactureHasPrefix ¶
WeekOfManufactureHasPrefix applies the HasPrefix predicate on the "week_of_manufacture" field.
func WeekOfManufactureHasSuffix ¶
WeekOfManufactureHasSuffix applies the HasSuffix predicate on the "week_of_manufacture" field.
func WeekOfManufactureIn ¶
WeekOfManufactureIn applies the In predicate on the "week_of_manufacture" field.
func WeekOfManufactureIsNil ¶
WeekOfManufactureIsNil applies the IsNil predicate on the "week_of_manufacture" field.
func WeekOfManufactureLT ¶
WeekOfManufactureLT applies the LT predicate on the "week_of_manufacture" field.
func WeekOfManufactureLTE ¶
WeekOfManufactureLTE applies the LTE predicate on the "week_of_manufacture" field.
func WeekOfManufactureNEQ ¶
WeekOfManufactureNEQ applies the NEQ predicate on the "week_of_manufacture" field.
func WeekOfManufactureNotIn ¶
WeekOfManufactureNotIn applies the NotIn predicate on the "week_of_manufacture" field.
func WeekOfManufactureNotNil ¶
WeekOfManufactureNotNil applies the NotNil predicate on the "week_of_manufacture" field.
func YearOfManufacture ¶
YearOfManufacture applies equality check predicate on the "year_of_manufacture" field. It's identical to YearOfManufactureEQ.
func YearOfManufactureContains ¶
YearOfManufactureContains applies the Contains predicate on the "year_of_manufacture" field.
func YearOfManufactureContainsFold ¶
YearOfManufactureContainsFold applies the ContainsFold predicate on the "year_of_manufacture" field.
func YearOfManufactureEQ ¶
YearOfManufactureEQ applies the EQ predicate on the "year_of_manufacture" field.
func YearOfManufactureEqualFold ¶
YearOfManufactureEqualFold applies the EqualFold predicate on the "year_of_manufacture" field.
func YearOfManufactureGT ¶
YearOfManufactureGT applies the GT predicate on the "year_of_manufacture" field.
func YearOfManufactureGTE ¶
YearOfManufactureGTE applies the GTE predicate on the "year_of_manufacture" field.
func YearOfManufactureHasPrefix ¶
YearOfManufactureHasPrefix applies the HasPrefix predicate on the "year_of_manufacture" field.
func YearOfManufactureHasSuffix ¶
YearOfManufactureHasSuffix applies the HasSuffix predicate on the "year_of_manufacture" field.
func YearOfManufactureIn ¶
YearOfManufactureIn applies the In predicate on the "year_of_manufacture" field.
func YearOfManufactureIsNil ¶
YearOfManufactureIsNil applies the IsNil predicate on the "year_of_manufacture" field.
func YearOfManufactureLT ¶
YearOfManufactureLT applies the LT predicate on the "year_of_manufacture" field.
func YearOfManufactureLTE ¶
YearOfManufactureLTE applies the LTE predicate on the "year_of_manufacture" field.
func YearOfManufactureNEQ ¶
YearOfManufactureNEQ applies the NEQ predicate on the "year_of_manufacture" field.
func YearOfManufactureNotIn ¶
YearOfManufactureNotIn applies the NotIn predicate on the "year_of_manufacture" field.
func YearOfManufactureNotNil ¶
YearOfManufactureNotNil applies the NotNil predicate on the "year_of_manufacture" field.
Types ¶
type OrderOption ¶
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.