nlogalert

package
v0.0.0-...-9f34937 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the nlogalert type in the database.
	Label = "nlog_alert"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNlogID holds the string denoting the nlog_id field in the database.
	FieldNlogID = "nlog_id"
	// FieldAlertID holds the string denoting the alert_id field in the database.
	FieldAlertID = "alert_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeNlog holds the string denoting the nlog edge name in mutations.
	EdgeNlog = "nlog"
	// EdgeAlert holds the string denoting the alert edge name in mutations.
	EdgeAlert = "alert"
	// Table holds the table name of the nlogalert in the database.
	Table = "msg_nlog_alert"
	// NlogTable is the table that holds the nlog relation/edge.
	NlogTable = "msg_nlog_alert"
	// NlogInverseTable is the table name for the Nlog entity.
	// It exists in this package in order to avoid circular dependency with the "nlog" package.
	NlogInverseTable = "msg_nlog"
	// NlogColumn is the table column denoting the nlog relation/edge.
	NlogColumn = "nlog_id"
	// AlertTable is the table that holds the alert relation/edge.
	AlertTable = "msg_nlog_alert"
	// AlertInverseTable is the table name for the MsgAlert entity.
	// It exists in this package in order to avoid circular dependency with the "msgalert" package.
	AlertInverseTable = "msg_alert"
	// AlertColumn is the table column denoting the alert relation/edge.
	AlertColumn = "alert_id"
)

Variables

Columns holds all SQL columns for nlogalert fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func AlertID

func AlertID(v int) predicate.NlogAlert

AlertID applies equality check predicate on the "alert_id" field. It's identical to AlertIDEQ.

func AlertIDEQ

func AlertIDEQ(v int) predicate.NlogAlert

AlertIDEQ applies the EQ predicate on the "alert_id" field.

func AlertIDIn

func AlertIDIn(vs ...int) predicate.NlogAlert

AlertIDIn applies the In predicate on the "alert_id" field.

func AlertIDNEQ

func AlertIDNEQ(v int) predicate.NlogAlert

AlertIDNEQ applies the NEQ predicate on the "alert_id" field.

func AlertIDNotIn

func AlertIDNotIn(vs ...int) predicate.NlogAlert

AlertIDNotIn applies the NotIn predicate on the "alert_id" field.

func And

func And(predicates ...predicate.NlogAlert) predicate.NlogAlert

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.NlogAlert

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.NlogAlert

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.NlogAlert

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.NlogAlert

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.NlogAlert

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.NlogAlert

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.NlogAlert

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

func CreatedAtNotIn

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

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

func HasAlert

func HasAlert() predicate.NlogAlert

HasAlert applies the HasEdge predicate on the "alert" edge.

func HasAlertWith

func HasAlertWith(preds ...predicate.MsgAlert) predicate.NlogAlert

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

func HasNlog

func HasNlog() predicate.NlogAlert

HasNlog applies the HasEdge predicate on the "nlog" edge.

func HasNlogWith

func HasNlogWith(preds ...predicate.Nlog) predicate.NlogAlert

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

func ID

func ID(id int) predicate.NlogAlert

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.NlogAlert

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.NlogAlert

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.NlogAlert

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.NlogAlert

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NlogAlert

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NlogAlert

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func NlogID

func NlogID(v int) predicate.NlogAlert

NlogID applies equality check predicate on the "nlog_id" field. It's identical to NlogIDEQ.

func NlogIDEQ

func NlogIDEQ(v int) predicate.NlogAlert

NlogIDEQ applies the EQ predicate on the "nlog_id" field.

func NlogIDIn

func NlogIDIn(vs ...int) predicate.NlogAlert

NlogIDIn applies the In predicate on the "nlog_id" field.

func NlogIDNEQ

func NlogIDNEQ(v int) predicate.NlogAlert

NlogIDNEQ applies the NEQ predicate on the "nlog_id" field.

func NlogIDNotIn

func NlogIDNotIn(vs ...int) predicate.NlogAlert

NlogIDNotIn applies the NotIn predicate on the "nlog_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.NlogAlert) predicate.NlogAlert

Or groups predicates with the OR operator between them.

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 NlogAlert queries.

func ByAlertField

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

ByAlertField orders the results by alert field.

func ByAlertID

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

ByAlertID orders the results by the alert_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByNlogField

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

ByNlogField orders the results by nlog field.

func ByNlogID

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

ByNlogID orders the results by the nlog_id field.

Jump to

Keyboard shortcuts

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