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 HasNotificationRules() predicate.NotificationChannel
- func HasNotificationRulesWith(preds ...predicate.NotificationRule) predicate.NotificationChannel
- func HasOrganization() predicate.NotificationChannel
- func HasOrganizationWith(preds ...predicate.Organization) predicate.NotificationChannel
- func ID(id uuid.UUID) predicate.NotificationChannel
- func IDEQ(id uuid.UUID) predicate.NotificationChannel
- func IDGT(id uuid.UUID) predicate.NotificationChannel
- func IDGTE(id uuid.UUID) predicate.NotificationChannel
- func IDIn(ids ...uuid.UUID) predicate.NotificationChannel
- func IDLT(id uuid.UUID) predicate.NotificationChannel
- func IDLTE(id uuid.UUID) predicate.NotificationChannel
- func IDNEQ(id uuid.UUID) predicate.NotificationChannel
- func IDNotIn(ids ...uuid.UUID) predicate.NotificationChannel
- func IsEnabled(v bool) predicate.NotificationChannel
- func IsEnabledEQ(v bool) predicate.NotificationChannel
- func IsEnabledNEQ(v bool) 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 Not(p predicate.NotificationChannel) predicate.NotificationChannel
- func Or(predicates ...predicate.NotificationChannel) predicate.NotificationChannel
- func OrganizationID(v uuid.UUID) predicate.NotificationChannel
- func OrganizationIDEQ(v uuid.UUID) predicate.NotificationChannel
- func OrganizationIDIn(vs ...uuid.UUID) predicate.NotificationChannel
- func OrganizationIDNEQ(v uuid.UUID) predicate.NotificationChannel
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.NotificationChannel
- func Type(v string) predicate.NotificationChannel
- func TypeContains(v string) predicate.NotificationChannel
- func TypeContainsFold(v string) predicate.NotificationChannel
- func TypeEQ(v string) predicate.NotificationChannel
- func TypeEqualFold(v string) predicate.NotificationChannel
- func TypeGT(v string) predicate.NotificationChannel
- func TypeGTE(v string) predicate.NotificationChannel
- func TypeHasPrefix(v string) predicate.NotificationChannel
- func TypeHasSuffix(v string) predicate.NotificationChannel
- func TypeIn(vs ...string) predicate.NotificationChannel
- func TypeLT(v string) predicate.NotificationChannel
- func TypeLTE(v string) predicate.NotificationChannel
- func TypeNEQ(v string) predicate.NotificationChannel
- func TypeNotIn(vs ...string) predicate.NotificationChannel
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNotificationRules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotificationRulesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByType(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" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // 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" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeNotificationRules holds the string denoting the notification_rules edge name in mutations. EdgeNotificationRules = "notification_rules" // Table holds the table name of the notificationchannel in the database. Table = "notification_channels" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "notification_channels" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" // NotificationRulesTable is the table that holds the notification_rules relation/edge. NotificationRulesTable = "notification_rules" // NotificationRulesInverseTable is the table name for the NotificationRule entity. // It exists in this package in order to avoid circular dependency with the "notificationrule" package. NotificationRulesInverseTable = "notification_rules" // NotificationRulesColumn is the table column denoting the notification_rules relation/edge. NotificationRulesColumn = "channel_id" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultConfig holds the default value on creation for the "config" field. DefaultConfig 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, FieldOrganizationID, FieldName, FieldType, FieldConfig, FieldIsEnabled, FieldCreatedAt, }
Columns holds all SQL columns for notificationchannel fields.
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 HasNotificationRules ¶
func HasNotificationRules() predicate.NotificationChannel
HasNotificationRules applies the HasEdge predicate on the "notification_rules" edge.
func HasNotificationRulesWith ¶
func HasNotificationRulesWith(preds ...predicate.NotificationRule) predicate.NotificationChannel
HasNotificationRulesWith applies the HasEdge predicate on the "notification_rules" edge with a given conditions (other predicates).
func HasOrganization ¶
func HasOrganization() predicate.NotificationChannel
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.NotificationChannel
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.NotificationChannel
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.NotificationChannel
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.NotificationChannel
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.NotificationChannel
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.NotificationChannel
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.NotificationChannel
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.NotificationChannel
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.NotificationChannel
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.NotificationChannel
IDNotIn applies the NotIn predicate on the ID field.
func IsEnabled ¶
func IsEnabled(v bool) predicate.NotificationChannel
IsEnabled applies equality check predicate on the "is_enabled" field. It's identical to IsEnabledEQ.
func IsEnabledEQ ¶
func IsEnabledEQ(v bool) predicate.NotificationChannel
IsEnabledEQ applies the EQ predicate on the "is_enabled" field.
func IsEnabledNEQ ¶
func IsEnabledNEQ(v bool) predicate.NotificationChannel
IsEnabledNEQ applies the NEQ predicate on the "is_enabled" 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 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 OrganizationID ¶
func OrganizationID(v uuid.UUID) predicate.NotificationChannel
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
func OrganizationIDEQ(v uuid.UUID) predicate.NotificationChannel
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
func OrganizationIDIn(vs ...uuid.UUID) predicate.NotificationChannel
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
func OrganizationIDNEQ(v uuid.UUID) predicate.NotificationChannel
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
func OrganizationIDNotIn(vs ...uuid.UUID) predicate.NotificationChannel
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func Type ¶
func Type(v string) predicate.NotificationChannel
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v string) predicate.NotificationChannel
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v string) predicate.NotificationChannel
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v string) predicate.NotificationChannel
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v string) predicate.NotificationChannel
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v string) predicate.NotificationChannel
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v string) predicate.NotificationChannel
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v string) predicate.NotificationChannel
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v string) predicate.NotificationChannel
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...string) predicate.NotificationChannel
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v string) predicate.NotificationChannel
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v string) predicate.NotificationChannel
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v string) predicate.NotificationChannel
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...string) predicate.NotificationChannel
TypeNotIn applies the NotIn predicate on the "type" 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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 ByNotificationRules ¶
func ByNotificationRules(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNotificationRules orders the results by notification_rules terms.
func ByNotificationRulesCount ¶
func ByNotificationRulesCount(opts ...sql.OrderTermOption) OrderOption
ByNotificationRulesCount orders the results by notification_rules count.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.