Documentation ¶
Index ¶
- Constants
- Variables
- func AlertEvents(v int) predicate.Event
- func AlertEventsEQ(v int) predicate.Event
- func AlertEventsIn(vs ...int) predicate.Event
- func AlertEventsIsNil() predicate.Event
- func AlertEventsNEQ(v int) predicate.Event
- func AlertEventsNotIn(vs ...int) predicate.Event
- func AlertEventsNotNil() predicate.Event
- func And(predicates ...predicate.Event) predicate.Event
- func CreatedAt(v time.Time) predicate.Event
- func CreatedAtEQ(v time.Time) predicate.Event
- func CreatedAtGT(v time.Time) predicate.Event
- func CreatedAtGTE(v time.Time) predicate.Event
- func CreatedAtIn(vs ...time.Time) predicate.Event
- func CreatedAtIsNil() predicate.Event
- func CreatedAtLT(v time.Time) predicate.Event
- func CreatedAtLTE(v time.Time) predicate.Event
- func CreatedAtNEQ(v time.Time) predicate.Event
- func CreatedAtNotIn(vs ...time.Time) predicate.Event
- func CreatedAtNotNil() predicate.Event
- func HasOwner() predicate.Event
- func HasOwnerWith(preds ...predicate.Alert) predicate.Event
- func ID(id int) predicate.Event
- func IDEQ(id int) predicate.Event
- func IDGT(id int) predicate.Event
- func IDGTE(id int) predicate.Event
- func IDIn(ids ...int) predicate.Event
- func IDLT(id int) predicate.Event
- func IDLTE(id int) predicate.Event
- func IDNEQ(id int) predicate.Event
- func IDNotIn(ids ...int) predicate.Event
- func Not(p predicate.Event) predicate.Event
- func Or(predicates ...predicate.Event) predicate.Event
- func Serialized(v string) predicate.Event
- func SerializedContains(v string) predicate.Event
- func SerializedContainsFold(v string) predicate.Event
- func SerializedEQ(v string) predicate.Event
- func SerializedEqualFold(v string) predicate.Event
- func SerializedGT(v string) predicate.Event
- func SerializedGTE(v string) predicate.Event
- func SerializedHasPrefix(v string) predicate.Event
- func SerializedHasSuffix(v string) predicate.Event
- func SerializedIn(vs ...string) predicate.Event
- func SerializedLT(v string) predicate.Event
- func SerializedLTE(v string) predicate.Event
- func SerializedNEQ(v string) predicate.Event
- func SerializedNotIn(vs ...string) predicate.Event
- func Time(v time.Time) predicate.Event
- func TimeEQ(v time.Time) predicate.Event
- func TimeGT(v time.Time) predicate.Event
- func TimeGTE(v time.Time) predicate.Event
- func TimeIn(vs ...time.Time) predicate.Event
- func TimeLT(v time.Time) predicate.Event
- func TimeLTE(v time.Time) predicate.Event
- func TimeNEQ(v time.Time) predicate.Event
- func TimeNotIn(vs ...time.Time) predicate.Event
- func UpdatedAt(v time.Time) predicate.Event
- func UpdatedAtEQ(v time.Time) predicate.Event
- func UpdatedAtGT(v time.Time) predicate.Event
- func UpdatedAtGTE(v time.Time) predicate.Event
- func UpdatedAtIn(vs ...time.Time) predicate.Event
- func UpdatedAtIsNil() predicate.Event
- func UpdatedAtLT(v time.Time) predicate.Event
- func UpdatedAtLTE(v time.Time) predicate.Event
- func UpdatedAtNEQ(v time.Time) predicate.Event
- func UpdatedAtNotIn(vs ...time.Time) predicate.Event
- func UpdatedAtNotNil() predicate.Event
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldTime, FieldSerialized, FieldAlertEvents, }
Columns holds all SQL columns for event fields.
Functions ¶
func AlertEvents ¶
AlertEvents applies equality check predicate on the "alert_events" field. It's identical to AlertEventsEQ.
func AlertEventsEQ ¶
AlertEventsEQ applies the EQ predicate on the "alert_events" field.
func AlertEventsIn ¶
AlertEventsIn applies the In predicate on the "alert_events" field.
func AlertEventsIsNil ¶
AlertEventsIsNil applies the IsNil predicate on the "alert_events" field.
func AlertEventsNEQ ¶
AlertEventsNEQ applies the NEQ predicate on the "alert_events" field.
func AlertEventsNotIn ¶
AlertEventsNotIn applies the NotIn predicate on the "alert_events" field.
func AlertEventsNotNil ¶
AlertEventsNotNil applies the NotNil predicate on the "alert_events" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Serialized ¶
Serialized applies equality check predicate on the "serialized" field. It's identical to SerializedEQ.
func SerializedContains ¶
SerializedContains applies the Contains predicate on the "serialized" field.
func SerializedContainsFold ¶
SerializedContainsFold applies the ContainsFold predicate on the "serialized" field.
func SerializedEQ ¶
SerializedEQ applies the EQ predicate on the "serialized" field.
func SerializedEqualFold ¶
SerializedEqualFold applies the EqualFold predicate on the "serialized" field.
func SerializedGT ¶
SerializedGT applies the GT predicate on the "serialized" field.
func SerializedGTE ¶
SerializedGTE applies the GTE predicate on the "serialized" field.
func SerializedHasPrefix ¶
SerializedHasPrefix applies the HasPrefix predicate on the "serialized" field.
func SerializedHasSuffix ¶
SerializedHasSuffix applies the HasSuffix predicate on the "serialized" field.
func SerializedIn ¶
SerializedIn applies the In predicate on the "serialized" field.
func SerializedLT ¶
SerializedLT applies the LT predicate on the "serialized" field.
func SerializedLTE ¶
SerializedLTE applies the LTE predicate on the "serialized" field.
func SerializedNEQ ¶
SerializedNEQ applies the NEQ predicate on the "serialized" field.
func SerializedNotIn ¶
SerializedNotIn applies the NotIn predicate on the "serialized" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.