event

package
v1.5.33 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the event type in the database.
	Label = "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"
	// FieldTime holds the string denoting the time field in the database.
	FieldTime = "time"
	// FieldSerialized holds the string denoting the serialized field in the database.
	FieldSerialized = "serialized"
	// FieldAlertEvents holds the string denoting the alert_events field in the database.
	FieldAlertEvents = "alert_events"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the event in the database.
	Table = "events"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "events"
	// OwnerInverseTable is the table name for the Alert entity.
	// It exists in this package in order to avoid circular dependency with the "alert" package.
	OwnerInverseTable = "alerts"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "alert_events"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// UpdateDefaultCreatedAt holds the default value on update for the "created_at" field.
	UpdateDefaultCreatedAt 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
	// SerializedValidator is a validator for the "serialized" field. It is called by the builders before save.
	SerializedValidator func(string) error
)

Columns holds all SQL columns for event fields.

Functions

func AlertEvents

func AlertEvents(v int) predicate.Event

AlertEvents applies equality check predicate on the "alert_events" field. It's identical to AlertEventsEQ.

func AlertEventsEQ

func AlertEventsEQ(v int) predicate.Event

AlertEventsEQ applies the EQ predicate on the "alert_events" field.

func AlertEventsIn

func AlertEventsIn(vs ...int) predicate.Event

AlertEventsIn applies the In predicate on the "alert_events" field.

func AlertEventsIsNil

func AlertEventsIsNil() predicate.Event

AlertEventsIsNil applies the IsNil predicate on the "alert_events" field.

func AlertEventsNEQ

func AlertEventsNEQ(v int) predicate.Event

AlertEventsNEQ applies the NEQ predicate on the "alert_events" field.

func AlertEventsNotIn

func AlertEventsNotIn(vs ...int) predicate.Event

AlertEventsNotIn applies the NotIn predicate on the "alert_events" field.

func AlertEventsNotNil

func AlertEventsNotNil() predicate.Event

AlertEventsNotNil applies the NotNil predicate on the "alert_events" field.

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Event

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Event

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Event

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Event

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Event

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Event

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Event

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Event

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Event

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func HasOwner

func HasOwner() predicate.Event

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

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Alert) predicate.Event

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

func ID

func ID(id int) predicate.Event

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func Serialized

func Serialized(v string) predicate.Event

Serialized applies equality check predicate on the "serialized" field. It's identical to SerializedEQ.

func SerializedContains

func SerializedContains(v string) predicate.Event

SerializedContains applies the Contains predicate on the "serialized" field.

func SerializedContainsFold

func SerializedContainsFold(v string) predicate.Event

SerializedContainsFold applies the ContainsFold predicate on the "serialized" field.

func SerializedEQ

func SerializedEQ(v string) predicate.Event

SerializedEQ applies the EQ predicate on the "serialized" field.

func SerializedEqualFold

func SerializedEqualFold(v string) predicate.Event

SerializedEqualFold applies the EqualFold predicate on the "serialized" field.

func SerializedGT

func SerializedGT(v string) predicate.Event

SerializedGT applies the GT predicate on the "serialized" field.

func SerializedGTE

func SerializedGTE(v string) predicate.Event

SerializedGTE applies the GTE predicate on the "serialized" field.

func SerializedHasPrefix

func SerializedHasPrefix(v string) predicate.Event

SerializedHasPrefix applies the HasPrefix predicate on the "serialized" field.

func SerializedHasSuffix

func SerializedHasSuffix(v string) predicate.Event

SerializedHasSuffix applies the HasSuffix predicate on the "serialized" field.

func SerializedIn

func SerializedIn(vs ...string) predicate.Event

SerializedIn applies the In predicate on the "serialized" field.

func SerializedLT

func SerializedLT(v string) predicate.Event

SerializedLT applies the LT predicate on the "serialized" field.

func SerializedLTE

func SerializedLTE(v string) predicate.Event

SerializedLTE applies the LTE predicate on the "serialized" field.

func SerializedNEQ

func SerializedNEQ(v string) predicate.Event

SerializedNEQ applies the NEQ predicate on the "serialized" field.

func SerializedNotIn

func SerializedNotIn(vs ...string) predicate.Event

SerializedNotIn applies the NotIn predicate on the "serialized" field.

func Time

func Time(v time.Time) predicate.Event

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

func TimeEQ

func TimeEQ(v time.Time) predicate.Event

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

func TimeGT

func TimeGT(v time.Time) predicate.Event

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

func TimeGTE

func TimeGTE(v time.Time) predicate.Event

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

func TimeIn

func TimeIn(vs ...time.Time) predicate.Event

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

func TimeLT

func TimeLT(v time.Time) predicate.Event

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

func TimeLTE

func TimeLTE(v time.Time) predicate.Event

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

func TimeNEQ

func TimeNEQ(v time.Time) predicate.Event

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

func TimeNotIn

func TimeNotIn(vs ...time.Time) predicate.Event

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Event

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Event

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Event

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Event

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Event

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Event

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Event

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Event

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Event

UpdatedAtNotNil applies the NotNil 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

This section is empty.

Jump to

Keyboard shortcuts

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