notificationevent

package
v1.0.0-beta.168 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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{}]
	}
)

Columns holds all SQL columns for notificationevent fields.

View Source
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

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

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

func ID

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

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

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Payload

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

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

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

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

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

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

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

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

Jump to

Keyboard shortcuts

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