Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NotificationEvent) predicate.NotificationEvent
- func AnnotationsIsNil() predicate.NotificationEvent
- func AnnotationsNotNil() predicate.NotificationEvent
- func CreatedAt(v time.Time) predicate.NotificationEvent
- func CreatedAtEQ(v time.Time) predicate.NotificationEvent
- func CreatedAtGT(v time.Time) predicate.NotificationEvent
- func CreatedAtGTE(v time.Time) predicate.NotificationEvent
- func CreatedAtIn(vs ...time.Time) predicate.NotificationEvent
- func CreatedAtLT(v time.Time) predicate.NotificationEvent
- func CreatedAtLTE(v time.Time) predicate.NotificationEvent
- func CreatedAtNEQ(v time.Time) predicate.NotificationEvent
- func CreatedAtNotIn(vs ...time.Time) predicate.NotificationEvent
- func HasDeliveryStatuses() predicate.NotificationEvent
- func HasDeliveryStatusesWith(preds ...predicate.NotificationEventDeliveryStatus) predicate.NotificationEvent
- func HasRules() predicate.NotificationEvent
- func HasRulesWith(preds ...predicate.NotificationRule) predicate.NotificationEvent
- func ID(id string) predicate.NotificationEvent
- func IDContainsFold(id string) predicate.NotificationEvent
- func IDEQ(id string) predicate.NotificationEvent
- func IDEqualFold(id string) predicate.NotificationEvent
- func IDGT(id string) predicate.NotificationEvent
- func IDGTE(id string) predicate.NotificationEvent
- func IDIn(ids ...string) predicate.NotificationEvent
- func IDLT(id string) predicate.NotificationEvent
- func IDLTE(id string) predicate.NotificationEvent
- func IDNEQ(id string) predicate.NotificationEvent
- func IDNotIn(ids ...string) predicate.NotificationEvent
- func Namespace(v string) predicate.NotificationEvent
- func NamespaceContains(v string) predicate.NotificationEvent
- func NamespaceContainsFold(v string) predicate.NotificationEvent
- func NamespaceEQ(v string) predicate.NotificationEvent
- func NamespaceEqualFold(v string) predicate.NotificationEvent
- func NamespaceGT(v string) predicate.NotificationEvent
- func NamespaceGTE(v string) predicate.NotificationEvent
- func NamespaceHasPrefix(v string) predicate.NotificationEvent
- func NamespaceHasSuffix(v string) predicate.NotificationEvent
- func NamespaceIn(vs ...string) predicate.NotificationEvent
- func NamespaceLT(v string) predicate.NotificationEvent
- func NamespaceLTE(v string) predicate.NotificationEvent
- func NamespaceNEQ(v string) predicate.NotificationEvent
- func NamespaceNotIn(vs ...string) predicate.NotificationEvent
- func Not(p predicate.NotificationEvent) predicate.NotificationEvent
- func Or(predicates ...predicate.NotificationEvent) predicate.NotificationEvent
- func Payload(v string) predicate.NotificationEvent
- func PayloadContains(v string) predicate.NotificationEvent
- func PayloadContainsFold(v string) predicate.NotificationEvent
- func PayloadEQ(v string) predicate.NotificationEvent
- func PayloadEqualFold(v string) predicate.NotificationEvent
- func PayloadGT(v string) predicate.NotificationEvent
- func PayloadGTE(v string) predicate.NotificationEvent
- func PayloadHasPrefix(v string) predicate.NotificationEvent
- func PayloadHasSuffix(v string) predicate.NotificationEvent
- func PayloadIn(vs ...string) predicate.NotificationEvent
- func PayloadLT(v string) predicate.NotificationEvent
- func PayloadLTE(v string) predicate.NotificationEvent
- func PayloadNEQ(v string) predicate.NotificationEvent
- func PayloadNotIn(vs ...string) predicate.NotificationEvent
- func RuleID(v string) predicate.NotificationEvent
- func RuleIDContains(v string) predicate.NotificationEvent
- func RuleIDContainsFold(v string) predicate.NotificationEvent
- func RuleIDEQ(v string) predicate.NotificationEvent
- func RuleIDEqualFold(v string) predicate.NotificationEvent
- func RuleIDGT(v string) predicate.NotificationEvent
- func RuleIDGTE(v string) predicate.NotificationEvent
- func RuleIDHasPrefix(v string) predicate.NotificationEvent
- func RuleIDHasSuffix(v string) predicate.NotificationEvent
- func RuleIDIn(vs ...string) predicate.NotificationEvent
- func RuleIDLT(v string) predicate.NotificationEvent
- func RuleIDLTE(v string) predicate.NotificationEvent
- func RuleIDNEQ(v string) predicate.NotificationEvent
- func RuleIDNotIn(vs ...string) predicate.NotificationEvent
- func TypeEQ(v notification.EventType) predicate.NotificationEvent
- func TypeIn(vs ...notification.EventType) predicate.NotificationEvent
- func TypeNEQ(v notification.EventType) predicate.NotificationEvent
- func TypeNotIn(vs ...notification.EventType) predicate.NotificationEvent
- func TypeValidator(_type notification.EventType) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAnnotations(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeliveryStatuses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDeliveryStatusesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByPayload(opts ...sql.OrderTermOption) OrderOption
- func ByRuleID(opts ...sql.OrderTermOption) OrderOption
- func ByRulesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the notificationevent type in the database. Label = "notification_event" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldRuleID holds the string denoting the rule_id field in the database. FieldRuleID = "rule_id" // FieldPayload holds the string denoting the payload field in the database. FieldPayload = "payload" // FieldAnnotations holds the string denoting the annotations field in the database. FieldAnnotations = "annotations" // EdgeDeliveryStatuses holds the string denoting the delivery_statuses edge name in mutations. EdgeDeliveryStatuses = "delivery_statuses" // EdgeRules holds the string denoting the rules edge name in mutations. EdgeRules = "rules" // Table holds the table name of the notificationevent in the database. Table = "notification_events" // DeliveryStatusesTable is the table that holds the delivery_statuses relation/edge. The primary key declared below. DeliveryStatusesTable = "notification_event_delivery_status_events" // DeliveryStatusesInverseTable is the table name for the NotificationEventDeliveryStatus entity. // It exists in this package in order to avoid circular dependency with the "notificationeventdeliverystatus" package. DeliveryStatusesInverseTable = "notification_event_delivery_status" // RulesTable is the table that holds the rules relation/edge. RulesTable = "notification_events" // RulesInverseTable is the table name for the NotificationRule entity. // It exists in this package in order to avoid circular dependency with the "notificationrule" package. RulesInverseTable = "notification_rules" // RulesColumn is the table column denoting the rules relation/edge. RulesColumn = "rule_id" )
Variables ¶
var ( // NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save. NamespaceValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // ValueScanner of all NotificationEvent fields. ValueScanner struct { Annotations field.TypeValueScanner[map[string]interface{}] } )
var Columns = []string{ FieldID, FieldNamespace, FieldCreatedAt, FieldType, FieldRuleID, FieldPayload, FieldAnnotations, }
Columns holds all SQL columns for notificationevent fields.
var ( // DeliveryStatusesPrimaryKey and DeliveryStatusesColumn2 are the table columns denoting the // primary key for the delivery_statuses relation (M2M). DeliveryStatusesPrimaryKey = []string{"notification_event_delivery_status_id", "notification_event_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.NotificationEvent) predicate.NotificationEvent
And groups predicates with the AND operator between them.
func AnnotationsIsNil ¶
func AnnotationsIsNil() predicate.NotificationEvent
AnnotationsIsNil applies the IsNil predicate on the "annotations" field.
func AnnotationsNotNil ¶
func AnnotationsNotNil() predicate.NotificationEvent
AnnotationsNotNil applies the NotNil predicate on the "annotations" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.NotificationEvent
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.NotificationEvent
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.NotificationEvent
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.NotificationEvent
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.NotificationEvent
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.NotificationEvent
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.NotificationEvent
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.NotificationEvent
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.NotificationEvent
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasDeliveryStatuses ¶
func HasDeliveryStatuses() predicate.NotificationEvent
HasDeliveryStatuses applies the HasEdge predicate on the "delivery_statuses" edge.
func HasDeliveryStatusesWith ¶
func HasDeliveryStatusesWith(preds ...predicate.NotificationEventDeliveryStatus) predicate.NotificationEvent
HasDeliveryStatusesWith applies the HasEdge predicate on the "delivery_statuses" edge with a given conditions (other predicates).
func HasRules ¶
func HasRules() predicate.NotificationEvent
HasRules applies the HasEdge predicate on the "rules" edge.
func HasRulesWith ¶
func HasRulesWith(preds ...predicate.NotificationRule) predicate.NotificationEvent
HasRulesWith applies the HasEdge predicate on the "rules" edge with a given conditions (other predicates).
func ID ¶
func ID(id string) predicate.NotificationEvent
ID filters vertices based on their ID field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.NotificationEvent
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.NotificationEvent
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.NotificationEvent
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.NotificationEvent
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.NotificationEvent
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.NotificationEvent
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.NotificationEvent
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.NotificationEvent
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.NotificationEvent
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.NotificationEvent
IDNotIn applies the NotIn predicate on the ID field.
func Namespace ¶
func Namespace(v string) predicate.NotificationEvent
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.NotificationEvent
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.NotificationEvent
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.NotificationEvent
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.NotificationEvent
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.NotificationEvent
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.NotificationEvent
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.NotificationEvent
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.NotificationEvent
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.NotificationEvent
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.NotificationEvent
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.NotificationEvent
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.NotificationEvent
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.NotificationEvent
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.NotificationEvent) predicate.NotificationEvent
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.NotificationEvent) predicate.NotificationEvent
Or groups predicates with the OR operator between them.
func Payload ¶
func Payload(v string) predicate.NotificationEvent
Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.
func PayloadContains ¶
func PayloadContains(v string) predicate.NotificationEvent
PayloadContains applies the Contains predicate on the "payload" field.
func PayloadContainsFold ¶
func PayloadContainsFold(v string) predicate.NotificationEvent
PayloadContainsFold applies the ContainsFold predicate on the "payload" field.
func PayloadEQ ¶
func PayloadEQ(v string) predicate.NotificationEvent
PayloadEQ applies the EQ predicate on the "payload" field.
func PayloadEqualFold ¶
func PayloadEqualFold(v string) predicate.NotificationEvent
PayloadEqualFold applies the EqualFold predicate on the "payload" field.
func PayloadGT ¶
func PayloadGT(v string) predicate.NotificationEvent
PayloadGT applies the GT predicate on the "payload" field.
func PayloadGTE ¶
func PayloadGTE(v string) predicate.NotificationEvent
PayloadGTE applies the GTE predicate on the "payload" field.
func PayloadHasPrefix ¶
func PayloadHasPrefix(v string) predicate.NotificationEvent
PayloadHasPrefix applies the HasPrefix predicate on the "payload" field.
func PayloadHasSuffix ¶
func PayloadHasSuffix(v string) predicate.NotificationEvent
PayloadHasSuffix applies the HasSuffix predicate on the "payload" field.
func PayloadIn ¶
func PayloadIn(vs ...string) predicate.NotificationEvent
PayloadIn applies the In predicate on the "payload" field.
func PayloadLT ¶
func PayloadLT(v string) predicate.NotificationEvent
PayloadLT applies the LT predicate on the "payload" field.
func PayloadLTE ¶
func PayloadLTE(v string) predicate.NotificationEvent
PayloadLTE applies the LTE predicate on the "payload" field.
func PayloadNEQ ¶
func PayloadNEQ(v string) predicate.NotificationEvent
PayloadNEQ applies the NEQ predicate on the "payload" field.
func PayloadNotIn ¶
func PayloadNotIn(vs ...string) predicate.NotificationEvent
PayloadNotIn applies the NotIn predicate on the "payload" field.
func RuleID ¶
func RuleID(v string) predicate.NotificationEvent
RuleID applies equality check predicate on the "rule_id" field. It's identical to RuleIDEQ.
func RuleIDContains ¶
func RuleIDContains(v string) predicate.NotificationEvent
RuleIDContains applies the Contains predicate on the "rule_id" field.
func RuleIDContainsFold ¶
func RuleIDContainsFold(v string) predicate.NotificationEvent
RuleIDContainsFold applies the ContainsFold predicate on the "rule_id" field.
func RuleIDEQ ¶
func RuleIDEQ(v string) predicate.NotificationEvent
RuleIDEQ applies the EQ predicate on the "rule_id" field.
func RuleIDEqualFold ¶
func RuleIDEqualFold(v string) predicate.NotificationEvent
RuleIDEqualFold applies the EqualFold predicate on the "rule_id" field.
func RuleIDGT ¶
func RuleIDGT(v string) predicate.NotificationEvent
RuleIDGT applies the GT predicate on the "rule_id" field.
func RuleIDGTE ¶
func RuleIDGTE(v string) predicate.NotificationEvent
RuleIDGTE applies the GTE predicate on the "rule_id" field.
func RuleIDHasPrefix ¶
func RuleIDHasPrefix(v string) predicate.NotificationEvent
RuleIDHasPrefix applies the HasPrefix predicate on the "rule_id" field.
func RuleIDHasSuffix ¶
func RuleIDHasSuffix(v string) predicate.NotificationEvent
RuleIDHasSuffix applies the HasSuffix predicate on the "rule_id" field.
func RuleIDIn ¶
func RuleIDIn(vs ...string) predicate.NotificationEvent
RuleIDIn applies the In predicate on the "rule_id" field.
func RuleIDLT ¶
func RuleIDLT(v string) predicate.NotificationEvent
RuleIDLT applies the LT predicate on the "rule_id" field.
func RuleIDLTE ¶
func RuleIDLTE(v string) predicate.NotificationEvent
RuleIDLTE applies the LTE predicate on the "rule_id" field.
func RuleIDNEQ ¶
func RuleIDNEQ(v string) predicate.NotificationEvent
RuleIDNEQ applies the NEQ predicate on the "rule_id" field.
func RuleIDNotIn ¶
func RuleIDNotIn(vs ...string) predicate.NotificationEvent
RuleIDNotIn applies the NotIn predicate on the "rule_id" field.
func TypeEQ ¶
func TypeEQ(v notification.EventType) predicate.NotificationEvent
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...notification.EventType) predicate.NotificationEvent
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v notification.EventType) predicate.NotificationEvent
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...notification.EventType) predicate.NotificationEvent
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
func TypeValidator(_type notification.EventType) error
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the NotificationEvent queries.
func ByAnnotations ¶
func ByAnnotations(opts ...sql.OrderTermOption) OrderOption
ByAnnotations orders the results by the annotations field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeliveryStatuses ¶
func ByDeliveryStatuses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDeliveryStatuses orders the results by delivery_statuses terms.
func ByDeliveryStatusesCount ¶
func ByDeliveryStatusesCount(opts ...sql.OrderTermOption) OrderOption
ByDeliveryStatusesCount orders the results by delivery_statuses count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByPayload ¶
func ByPayload(opts ...sql.OrderTermOption) OrderOption
ByPayload orders the results by the payload field.
func ByRuleID ¶
func ByRuleID(opts ...sql.OrderTermOption) OrderOption
ByRuleID orders the results by the rule_id field.
func ByRulesField ¶
func ByRulesField(field string, opts ...sql.OrderTermOption) OrderOption
ByRulesField orders the results by rules field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.