notificationrule

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the notificationrule type in the database.
	Label = "notification_rule"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldChannelID holds the string denoting the channel_id field in the database.
	FieldChannelID = "channel_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldEventType holds the string denoting the event_type field in the database.
	FieldEventType = "event_type"
	// FieldFilter holds the string denoting the filter field in the database.
	FieldFilter = "filter"
	// FieldTemplate holds the string denoting the template field in the database.
	FieldTemplate = "template"
	// FieldIsEnabled holds the string denoting the is_enabled field in the database.
	FieldIsEnabled = "is_enabled"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeChannel holds the string denoting the channel edge name in mutations.
	EdgeChannel = "channel"
	// Table holds the table name of the notificationrule in the database.
	Table = "notification_rules"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "notification_rules"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_id"
	// ChannelTable is the table that holds the channel relation/edge.
	ChannelTable = "notification_rules"
	// ChannelInverseTable is the table name for the NotificationChannel entity.
	// It exists in this package in order to avoid circular dependency with the "notificationchannel" package.
	ChannelInverseTable = "notification_channels"
	// ChannelColumn is the table column denoting the channel relation/edge.
	ChannelColumn = "channel_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// EventTypeValidator is a validator for the "event_type" field. It is called by the builders before save.
	EventTypeValidator func(string) error
	// DefaultFilter holds the default value on creation for the "filter" field.
	DefaultFilter func() map[string]interface{}
	// DefaultIsEnabled holds the default value on creation for the "is_enabled" field.
	DefaultIsEnabled bool
	// 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() uuid.UUID
)

Columns holds all SQL columns for notificationrule fields.

Functions

func And

And groups predicates with the AND operator between them.

func ChannelID

func ChannelID(v uuid.UUID) predicate.NotificationRule

ChannelID applies equality check predicate on the "channel_id" field. It's identical to ChannelIDEQ.

func ChannelIDEQ

func ChannelIDEQ(v uuid.UUID) predicate.NotificationRule

ChannelIDEQ applies the EQ predicate on the "channel_id" field.

func ChannelIDIn

func ChannelIDIn(vs ...uuid.UUID) predicate.NotificationRule

ChannelIDIn applies the In predicate on the "channel_id" field.

func ChannelIDNEQ

func ChannelIDNEQ(v uuid.UUID) predicate.NotificationRule

ChannelIDNEQ applies the NEQ predicate on the "channel_id" field.

func ChannelIDNotIn

func ChannelIDNotIn(vs ...uuid.UUID) predicate.NotificationRule

ChannelIDNotIn applies the NotIn predicate on the "channel_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.NotificationRule

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.NotificationRule

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.NotificationRule

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.NotificationRule

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.NotificationRule

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.NotificationRule

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.NotificationRule

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

func CreatedAtNotIn

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

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

func EventType

func EventType(v string) predicate.NotificationRule

EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.

func EventTypeContains

func EventTypeContains(v string) predicate.NotificationRule

EventTypeContains applies the Contains predicate on the "event_type" field.

func EventTypeContainsFold

func EventTypeContainsFold(v string) predicate.NotificationRule

EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.

func EventTypeEQ

func EventTypeEQ(v string) predicate.NotificationRule

EventTypeEQ applies the EQ predicate on the "event_type" field.

func EventTypeEqualFold

func EventTypeEqualFold(v string) predicate.NotificationRule

EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.

func EventTypeGT

func EventTypeGT(v string) predicate.NotificationRule

EventTypeGT applies the GT predicate on the "event_type" field.

func EventTypeGTE

func EventTypeGTE(v string) predicate.NotificationRule

EventTypeGTE applies the GTE predicate on the "event_type" field.

func EventTypeHasPrefix

func EventTypeHasPrefix(v string) predicate.NotificationRule

EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.

func EventTypeHasSuffix

func EventTypeHasSuffix(v string) predicate.NotificationRule

EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.

func EventTypeIn

func EventTypeIn(vs ...string) predicate.NotificationRule

EventTypeIn applies the In predicate on the "event_type" field.

func EventTypeLT

func EventTypeLT(v string) predicate.NotificationRule

EventTypeLT applies the LT predicate on the "event_type" field.

func EventTypeLTE

func EventTypeLTE(v string) predicate.NotificationRule

EventTypeLTE applies the LTE predicate on the "event_type" field.

func EventTypeNEQ

func EventTypeNEQ(v string) predicate.NotificationRule

EventTypeNEQ applies the NEQ predicate on the "event_type" field.

func EventTypeNotIn

func EventTypeNotIn(vs ...string) predicate.NotificationRule

EventTypeNotIn applies the NotIn predicate on the "event_type" field.

func HasChannel

func HasChannel() predicate.NotificationRule

HasChannel applies the HasEdge predicate on the "channel" edge.

func HasChannelWith

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

func HasProject

func HasProject() predicate.NotificationRule

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.NotificationRule

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ 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 ...uuid.UUID) predicate.NotificationRule

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 ...uuid.UUID) predicate.NotificationRule

IDNotIn applies the NotIn predicate on the ID field.

func IsEnabled

func IsEnabled(v bool) predicate.NotificationRule

IsEnabled applies equality check predicate on the "is_enabled" field. It's identical to IsEnabledEQ.

func IsEnabledEQ

func IsEnabledEQ(v bool) predicate.NotificationRule

IsEnabledEQ applies the EQ predicate on the "is_enabled" field.

func IsEnabledNEQ

func IsEnabledNEQ(v bool) predicate.NotificationRule

IsEnabledNEQ applies the NEQ predicate on the "is_enabled" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.NotificationRule

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.NotificationRule

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.NotificationRule

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

NameGT applies the GT predicate on the "name" field.

func NameGTE

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.NotificationRule

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.NotificationRule

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.NotificationRule

NameIn applies the In predicate on the "name" field.

func NameLT

NameLT applies the LT predicate on the "name" field.

func NameLTE

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.NotificationRule

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ProjectID

func ProjectID(v uuid.UUID) predicate.NotificationRule

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDEQ

func ProjectIDEQ(v uuid.UUID) predicate.NotificationRule

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...uuid.UUID) predicate.NotificationRule

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v uuid.UUID) predicate.NotificationRule

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...uuid.UUID) predicate.NotificationRule

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func Template

func Template(v string) predicate.NotificationRule

Template applies equality check predicate on the "template" field. It's identical to TemplateEQ.

func TemplateContains

func TemplateContains(v string) predicate.NotificationRule

TemplateContains applies the Contains predicate on the "template" field.

func TemplateContainsFold

func TemplateContainsFold(v string) predicate.NotificationRule

TemplateContainsFold applies the ContainsFold predicate on the "template" field.

func TemplateEQ

func TemplateEQ(v string) predicate.NotificationRule

TemplateEQ applies the EQ predicate on the "template" field.

func TemplateEqualFold

func TemplateEqualFold(v string) predicate.NotificationRule

TemplateEqualFold applies the EqualFold predicate on the "template" field.

func TemplateGT

func TemplateGT(v string) predicate.NotificationRule

TemplateGT applies the GT predicate on the "template" field.

func TemplateGTE

func TemplateGTE(v string) predicate.NotificationRule

TemplateGTE applies the GTE predicate on the "template" field.

func TemplateHasPrefix

func TemplateHasPrefix(v string) predicate.NotificationRule

TemplateHasPrefix applies the HasPrefix predicate on the "template" field.

func TemplateHasSuffix

func TemplateHasSuffix(v string) predicate.NotificationRule

TemplateHasSuffix applies the HasSuffix predicate on the "template" field.

func TemplateIn

func TemplateIn(vs ...string) predicate.NotificationRule

TemplateIn applies the In predicate on the "template" field.

func TemplateIsNil

func TemplateIsNil() predicate.NotificationRule

TemplateIsNil applies the IsNil predicate on the "template" field.

func TemplateLT

func TemplateLT(v string) predicate.NotificationRule

TemplateLT applies the LT predicate on the "template" field.

func TemplateLTE

func TemplateLTE(v string) predicate.NotificationRule

TemplateLTE applies the LTE predicate on the "template" field.

func TemplateNEQ

func TemplateNEQ(v string) predicate.NotificationRule

TemplateNEQ applies the NEQ predicate on the "template" field.

func TemplateNotIn

func TemplateNotIn(vs ...string) predicate.NotificationRule

TemplateNotIn applies the NotIn predicate on the "template" field.

func TemplateNotNil

func TemplateNotNil() predicate.NotificationRule

TemplateNotNil applies the NotNil predicate on the "template" field.

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

func ByChannelField

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

ByChannelField orders the results by channel field.

func ByChannelID

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

ByChannelID orders the results by the channel_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEventType

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

ByEventType orders the results by the event_type field.

func ByID

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

ByID orders the results by the id field.

func ByIsEnabled

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

ByIsEnabled orders the results by the is_enabled field.

func ByName

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

ByName orders the results by the name field.

func ByProjectField

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

ByProjectField orders the results by project field.

func ByProjectID

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

ByProjectID orders the results by the project_id field.

func ByTemplate

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

ByTemplate orders the results by the template field.

Jump to

Keyboard shortcuts

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