Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NotificationRule) predicate.NotificationRule
- func ChannelID(v uuid.UUID) predicate.NotificationRule
- func ChannelIDEQ(v uuid.UUID) predicate.NotificationRule
- func ChannelIDIn(vs ...uuid.UUID) predicate.NotificationRule
- func ChannelIDNEQ(v uuid.UUID) predicate.NotificationRule
- func ChannelIDNotIn(vs ...uuid.UUID) predicate.NotificationRule
- func CreatedAt(v time.Time) predicate.NotificationRule
- func CreatedAtEQ(v time.Time) predicate.NotificationRule
- func CreatedAtGT(v time.Time) predicate.NotificationRule
- func CreatedAtGTE(v time.Time) predicate.NotificationRule
- func CreatedAtIn(vs ...time.Time) predicate.NotificationRule
- func CreatedAtLT(v time.Time) predicate.NotificationRule
- func CreatedAtLTE(v time.Time) predicate.NotificationRule
- func CreatedAtNEQ(v time.Time) predicate.NotificationRule
- func CreatedAtNotIn(vs ...time.Time) predicate.NotificationRule
- func EventType(v string) predicate.NotificationRule
- func EventTypeContains(v string) predicate.NotificationRule
- func EventTypeContainsFold(v string) predicate.NotificationRule
- func EventTypeEQ(v string) predicate.NotificationRule
- func EventTypeEqualFold(v string) predicate.NotificationRule
- func EventTypeGT(v string) predicate.NotificationRule
- func EventTypeGTE(v string) predicate.NotificationRule
- func EventTypeHasPrefix(v string) predicate.NotificationRule
- func EventTypeHasSuffix(v string) predicate.NotificationRule
- func EventTypeIn(vs ...string) predicate.NotificationRule
- func EventTypeLT(v string) predicate.NotificationRule
- func EventTypeLTE(v string) predicate.NotificationRule
- func EventTypeNEQ(v string) predicate.NotificationRule
- func EventTypeNotIn(vs ...string) predicate.NotificationRule
- func HasChannel() predicate.NotificationRule
- func HasChannelWith(preds ...predicate.NotificationChannel) predicate.NotificationRule
- func HasProject() predicate.NotificationRule
- func HasProjectWith(preds ...predicate.Project) predicate.NotificationRule
- func ID(id uuid.UUID) predicate.NotificationRule
- func IDEQ(id uuid.UUID) predicate.NotificationRule
- func IDGT(id uuid.UUID) predicate.NotificationRule
- func IDGTE(id uuid.UUID) predicate.NotificationRule
- func IDIn(ids ...uuid.UUID) predicate.NotificationRule
- func IDLT(id uuid.UUID) predicate.NotificationRule
- func IDLTE(id uuid.UUID) predicate.NotificationRule
- func IDNEQ(id uuid.UUID) predicate.NotificationRule
- func IDNotIn(ids ...uuid.UUID) predicate.NotificationRule
- func IsEnabled(v bool) predicate.NotificationRule
- func IsEnabledEQ(v bool) predicate.NotificationRule
- func IsEnabledNEQ(v bool) predicate.NotificationRule
- func Name(v string) predicate.NotificationRule
- func NameContains(v string) predicate.NotificationRule
- func NameContainsFold(v string) predicate.NotificationRule
- func NameEQ(v string) predicate.NotificationRule
- func NameEqualFold(v string) predicate.NotificationRule
- func NameGT(v string) predicate.NotificationRule
- func NameGTE(v string) predicate.NotificationRule
- func NameHasPrefix(v string) predicate.NotificationRule
- func NameHasSuffix(v string) predicate.NotificationRule
- func NameIn(vs ...string) predicate.NotificationRule
- func NameLT(v string) predicate.NotificationRule
- func NameLTE(v string) predicate.NotificationRule
- func NameNEQ(v string) predicate.NotificationRule
- func NameNotIn(vs ...string) predicate.NotificationRule
- func Not(p predicate.NotificationRule) predicate.NotificationRule
- func Or(predicates ...predicate.NotificationRule) predicate.NotificationRule
- func ProjectID(v uuid.UUID) predicate.NotificationRule
- func ProjectIDEQ(v uuid.UUID) predicate.NotificationRule
- func ProjectIDIn(vs ...uuid.UUID) predicate.NotificationRule
- func ProjectIDNEQ(v uuid.UUID) predicate.NotificationRule
- func ProjectIDNotIn(vs ...uuid.UUID) predicate.NotificationRule
- func Template(v string) predicate.NotificationRule
- func TemplateContains(v string) predicate.NotificationRule
- func TemplateContainsFold(v string) predicate.NotificationRule
- func TemplateEQ(v string) predicate.NotificationRule
- func TemplateEqualFold(v string) predicate.NotificationRule
- func TemplateGT(v string) predicate.NotificationRule
- func TemplateGTE(v string) predicate.NotificationRule
- func TemplateHasPrefix(v string) predicate.NotificationRule
- func TemplateHasSuffix(v string) predicate.NotificationRule
- func TemplateIn(vs ...string) predicate.NotificationRule
- func TemplateIsNil() predicate.NotificationRule
- func TemplateLT(v string) predicate.NotificationRule
- func TemplateLTE(v string) predicate.NotificationRule
- func TemplateNEQ(v string) predicate.NotificationRule
- func TemplateNotIn(vs ...string) predicate.NotificationRule
- func TemplateNotNil() predicate.NotificationRule
- func ValidColumn(column string) bool
- type OrderOption
- func ByChannelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByChannelID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEventType(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByTemplate(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldProjectID, FieldChannelID, FieldName, FieldEventType, FieldFilter, FieldTemplate, FieldIsEnabled, FieldCreatedAt, }
Columns holds all SQL columns for notificationrule fields.
Functions ¶
func And ¶
func And(predicates ...predicate.NotificationRule) predicate.NotificationRule
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 ¶
func HasChannelWith(preds ...predicate.NotificationChannel) predicate.NotificationRule
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 ¶
func ID(id uuid.UUID) predicate.NotificationRule
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.NotificationRule
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.NotificationRule
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.NotificationRule
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 ¶
func IDLT(id uuid.UUID) predicate.NotificationRule
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.NotificationRule
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.NotificationRule
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 ¶
func Name(v string) predicate.NotificationRule
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 ¶
func NameEQ(v string) predicate.NotificationRule
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 ¶
func NameGT(v string) predicate.NotificationRule
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.NotificationRule
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 ¶
func NameLT(v string) predicate.NotificationRule
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.NotificationRule
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.NotificationRule
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 ¶
func Not(p predicate.NotificationRule) predicate.NotificationRule
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.NotificationRule) predicate.NotificationRule
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.