Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.NotificationChannel) predicate.NotificationChannel
- func CreatedAt(v time.Time) predicate.NotificationChannel
- func CreatedAtEQ(v time.Time) predicate.NotificationChannel
- func CreatedAtGT(v time.Time) predicate.NotificationChannel
- func CreatedAtGTE(v time.Time) predicate.NotificationChannel
- func CreatedAtIn(vs ...time.Time) predicate.NotificationChannel
- func CreatedAtLT(v time.Time) predicate.NotificationChannel
- func CreatedAtLTE(v time.Time) predicate.NotificationChannel
- func CreatedAtNEQ(v time.Time) predicate.NotificationChannel
- func CreatedAtNotIn(vs ...time.Time) predicate.NotificationChannel
- func DeletedAt(v time.Time) predicate.NotificationChannel
- func DeletedAtEQ(v time.Time) predicate.NotificationChannel
- func DeletedAtGT(v time.Time) predicate.NotificationChannel
- func DeletedAtGTE(v time.Time) predicate.NotificationChannel
- func DeletedAtIn(vs ...time.Time) predicate.NotificationChannel
- func DeletedAtIsNil() predicate.NotificationChannel
- func DeletedAtLT(v time.Time) predicate.NotificationChannel
- func DeletedAtLTE(v time.Time) predicate.NotificationChannel
- func DeletedAtNEQ(v time.Time) predicate.NotificationChannel
- func DeletedAtNotIn(vs ...time.Time) predicate.NotificationChannel
- func DeletedAtNotNil() predicate.NotificationChannel
- func Disabled(v bool) predicate.NotificationChannel
- func DisabledEQ(v bool) predicate.NotificationChannel
- func DisabledIsNil() predicate.NotificationChannel
- func DisabledNEQ(v bool) predicate.NotificationChannel
- func DisabledNotNil() predicate.NotificationChannel
- func HasRules() predicate.NotificationChannel
- func HasRulesWith(preds ...predicate.NotificationRule) predicate.NotificationChannel
- func ID(id string) predicate.NotificationChannel
- func IDContainsFold(id string) predicate.NotificationChannel
- func IDEQ(id string) predicate.NotificationChannel
- func IDEqualFold(id string) predicate.NotificationChannel
- func IDGT(id string) predicate.NotificationChannel
- func IDGTE(id string) predicate.NotificationChannel
- func IDIn(ids ...string) predicate.NotificationChannel
- func IDLT(id string) predicate.NotificationChannel
- func IDLTE(id string) predicate.NotificationChannel
- func IDNEQ(id string) predicate.NotificationChannel
- func IDNotIn(ids ...string) predicate.NotificationChannel
- func Name(v string) predicate.NotificationChannel
- func NameContains(v string) predicate.NotificationChannel
- func NameContainsFold(v string) predicate.NotificationChannel
- func NameEQ(v string) predicate.NotificationChannel
- func NameEqualFold(v string) predicate.NotificationChannel
- func NameGT(v string) predicate.NotificationChannel
- func NameGTE(v string) predicate.NotificationChannel
- func NameHasPrefix(v string) predicate.NotificationChannel
- func NameHasSuffix(v string) predicate.NotificationChannel
- func NameIn(vs ...string) predicate.NotificationChannel
- func NameLT(v string) predicate.NotificationChannel
- func NameLTE(v string) predicate.NotificationChannel
- func NameNEQ(v string) predicate.NotificationChannel
- func NameNotIn(vs ...string) predicate.NotificationChannel
- func Namespace(v string) predicate.NotificationChannel
- func NamespaceContains(v string) predicate.NotificationChannel
- func NamespaceContainsFold(v string) predicate.NotificationChannel
- func NamespaceEQ(v string) predicate.NotificationChannel
- func NamespaceEqualFold(v string) predicate.NotificationChannel
- func NamespaceGT(v string) predicate.NotificationChannel
- func NamespaceGTE(v string) predicate.NotificationChannel
- func NamespaceHasPrefix(v string) predicate.NotificationChannel
- func NamespaceHasSuffix(v string) predicate.NotificationChannel
- func NamespaceIn(vs ...string) predicate.NotificationChannel
- func NamespaceLT(v string) predicate.NotificationChannel
- func NamespaceLTE(v string) predicate.NotificationChannel
- func NamespaceNEQ(v string) predicate.NotificationChannel
- func NamespaceNotIn(vs ...string) predicate.NotificationChannel
- func Not(p predicate.NotificationChannel) predicate.NotificationChannel
- func Or(predicates ...predicate.NotificationChannel) predicate.NotificationChannel
- func TypeEQ(v notification.ChannelType) predicate.NotificationChannel
- func TypeIn(vs ...notification.ChannelType) predicate.NotificationChannel
- func TypeNEQ(v notification.ChannelType) predicate.NotificationChannel
- func TypeNotIn(vs ...notification.ChannelType) predicate.NotificationChannel
- func TypeValidator(_type notification.ChannelType) error
- func UpdatedAt(v time.Time) predicate.NotificationChannel
- func UpdatedAtEQ(v time.Time) predicate.NotificationChannel
- func UpdatedAtGT(v time.Time) predicate.NotificationChannel
- func UpdatedAtGTE(v time.Time) predicate.NotificationChannel
- func UpdatedAtIn(vs ...time.Time) predicate.NotificationChannel
- func UpdatedAtLT(v time.Time) predicate.NotificationChannel
- func UpdatedAtLTE(v time.Time) predicate.NotificationChannel
- func UpdatedAtNEQ(v time.Time) predicate.NotificationChannel
- func UpdatedAtNotIn(vs ...time.Time) predicate.NotificationChannel
- func ValidColumn(column string) bool
- type OrderOption
- func ByConfig(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisabled(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByRules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRulesCount(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the notificationchannel type in the database. Label = "notification_channel" // 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" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDisabled holds the string denoting the disabled field in the database. FieldDisabled = "disabled" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // EdgeRules holds the string denoting the rules edge name in mutations. EdgeRules = "rules" // Table holds the table name of the notificationchannel in the database. Table = "notification_channels" // RulesTable is the table that holds the rules relation/edge. The primary key declared below. RulesTable = "notification_channel_rules" // 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" )
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 // 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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultDisabled holds the default value on creation for the "disabled" field. DefaultDisabled bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // ValueScanner of all NotificationChannel fields. ValueScanner struct { Config field.TypeValueScanner[notification.ChannelConfig] } )
var Columns = []string{ FieldID, FieldNamespace, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldType, FieldName, FieldDisabled, FieldConfig, }
Columns holds all SQL columns for notificationchannel fields.
var ( // RulesPrimaryKey and RulesColumn2 are the table columns denoting the // primary key for the rules relation (M2M). RulesPrimaryKey = []string{"notification_channel_id", "notification_rule_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.NotificationChannel) predicate.NotificationChannel
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.NotificationChannel
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.NotificationChannel
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.NotificationChannel
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.NotificationChannel
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.NotificationChannel
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.NotificationChannel
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.NotificationChannel
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.NotificationChannel
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.NotificationChannel
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.NotificationChannel
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.NotificationChannel
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.NotificationChannel
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.NotificationChannel
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.NotificationChannel
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.NotificationChannel
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.NotificationChannel
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.NotificationChannel
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.NotificationChannel
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.NotificationChannel
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.NotificationChannel
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Disabled ¶
func Disabled(v bool) predicate.NotificationChannel
Disabled applies equality check predicate on the "disabled" field. It's identical to DisabledEQ.
func DisabledEQ ¶
func DisabledEQ(v bool) predicate.NotificationChannel
DisabledEQ applies the EQ predicate on the "disabled" field.
func DisabledIsNil ¶
func DisabledIsNil() predicate.NotificationChannel
DisabledIsNil applies the IsNil predicate on the "disabled" field.
func DisabledNEQ ¶
func DisabledNEQ(v bool) predicate.NotificationChannel
DisabledNEQ applies the NEQ predicate on the "disabled" field.
func DisabledNotNil ¶
func DisabledNotNil() predicate.NotificationChannel
DisabledNotNil applies the NotNil predicate on the "disabled" field.
func HasRules ¶
func HasRules() predicate.NotificationChannel
HasRules applies the HasEdge predicate on the "rules" edge.
func HasRulesWith ¶
func HasRulesWith(preds ...predicate.NotificationRule) predicate.NotificationChannel
HasRulesWith applies the HasEdge predicate on the "rules" edge with a given conditions (other predicates).
func ID ¶
func ID(id string) predicate.NotificationChannel
ID filters vertices based on their ID field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.NotificationChannel
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.NotificationChannel
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.NotificationChannel
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.NotificationChannel
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.NotificationChannel
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.NotificationChannel
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.NotificationChannel
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.NotificationChannel
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.NotificationChannel
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.NotificationChannel
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.NotificationChannel
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.NotificationChannel
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.NotificationChannel
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.NotificationChannel
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.NotificationChannel
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.NotificationChannel
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.NotificationChannel
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.NotificationChannel
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.NotificationChannel
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.NotificationChannel
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.NotificationChannel
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.NotificationChannel
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.NotificationChannel
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.NotificationChannel
NameNotIn applies the NotIn predicate on the "name" field.
func Namespace ¶
func Namespace(v string) predicate.NotificationChannel
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.NotificationChannel
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.NotificationChannel
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.NotificationChannel
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.NotificationChannel
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.NotificationChannel
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.NotificationChannel
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.NotificationChannel
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.NotificationChannel
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.NotificationChannel
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.NotificationChannel
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.NotificationChannel
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.NotificationChannel
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.NotificationChannel
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.NotificationChannel) predicate.NotificationChannel
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.NotificationChannel) predicate.NotificationChannel
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v notification.ChannelType) predicate.NotificationChannel
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...notification.ChannelType) predicate.NotificationChannel
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v notification.ChannelType) predicate.NotificationChannel
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...notification.ChannelType) predicate.NotificationChannel
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
func TypeValidator(_type notification.ChannelType) error
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.NotificationChannel
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.NotificationChannel
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.NotificationChannel
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.NotificationChannel
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.NotificationChannel
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.NotificationChannel
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.NotificationChannel
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.NotificationChannel
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.NotificationChannel
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 NotificationChannel queries.
func ByConfig ¶
func ByConfig(opts ...sql.OrderTermOption) OrderOption
ByConfig orders the results by the config field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDisabled ¶
func ByDisabled(opts ...sql.OrderTermOption) OrderOption
ByDisabled orders the results by the disabled field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByRules ¶
func ByRules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRules orders the results by rules terms.
func ByRulesCount ¶
func ByRulesCount(opts ...sql.OrderTermOption) OrderOption
ByRulesCount orders the results by rules count.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.