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 EmailConfigIsNil() predicate.NotificationChannel
- func EmailConfigNotNil() predicate.NotificationChannel
- func Enabled(v bool) predicate.NotificationChannel
- func EnabledEQ(v bool) predicate.NotificationChannel
- func EnabledNEQ(v bool) predicate.NotificationChannel
- func ID(id int) predicate.NotificationChannel
- func IDEQ(id int) predicate.NotificationChannel
- func IDGT(id int) predicate.NotificationChannel
- func IDGTE(id int) predicate.NotificationChannel
- func IDIn(ids ...int) predicate.NotificationChannel
- func IDLT(id int) predicate.NotificationChannel
- func IDLTE(id int) predicate.NotificationChannel
- func IDNEQ(id int) predicate.NotificationChannel
- func IDNotIn(ids ...int) predicate.NotificationChannel
- func LastUsed(v time.Time) predicate.NotificationChannel
- func LastUsedEQ(v time.Time) predicate.NotificationChannel
- func LastUsedGT(v time.Time) predicate.NotificationChannel
- func LastUsedGTE(v time.Time) predicate.NotificationChannel
- func LastUsedIn(vs ...time.Time) predicate.NotificationChannel
- func LastUsedIsNil() predicate.NotificationChannel
- func LastUsedLT(v time.Time) predicate.NotificationChannel
- func LastUsedLTE(v time.Time) predicate.NotificationChannel
- func LastUsedNEQ(v time.Time) predicate.NotificationChannel
- func LastUsedNotIn(vs ...time.Time) predicate.NotificationChannel
- func LastUsedNotNil() predicate.NotificationChannel
- func LastUsedSuccess(v bool) predicate.NotificationChannel
- func LastUsedSuccessEQ(v bool) predicate.NotificationChannel
- func LastUsedSuccessIsNil() predicate.NotificationChannel
- func LastUsedSuccessNEQ(v bool) predicate.NotificationChannel
- func LastUsedSuccessNotNil() 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 SlackConfigIsNil() predicate.NotificationChannel
- func SlackConfigNotNil() 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 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
- func WebhookConfigIsNil() predicate.NotificationChannel
- func WebhookConfigNotNil() predicate.NotificationChannel
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsed(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedSuccess(opts ...sql.OrderTermOption) OrderOption
- func ByName(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" // 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" // 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" // FieldSlackConfig holds the string denoting the slack_config field in the database. FieldSlackConfig = "slack_config" // FieldEmailConfig holds the string denoting the email_config field in the database. FieldEmailConfig = "email_config" // FieldWebhookConfig holds the string denoting the webhook_config field in the database. FieldWebhookConfig = "webhook_config" // FieldEnabled holds the string denoting the enabled field in the database. FieldEnabled = "enabled" // FieldLastUsed holds the string denoting the last_used field in the database. FieldLastUsed = "last_used" // FieldLastUsedSuccess holds the string denoting the last_used_success field in the database. FieldLastUsedSuccess = "last_used_success" // Table holds the table name of the notificationchannel in the database. Table = "notification_channels" )
Variables ¶
var ( // 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 // DefaultEnabled holds the default value on creation for the "enabled" field. DefaultEnabled bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldType, FieldSlackConfig, FieldEmailConfig, FieldWebhookConfig, FieldEnabled, FieldLastUsed, FieldLastUsedSuccess, }
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 EmailConfigIsNil ¶
func EmailConfigIsNil() predicate.NotificationChannel
EmailConfigIsNil applies the IsNil predicate on the "email_config" field.
func EmailConfigNotNil ¶
func EmailConfigNotNil() predicate.NotificationChannel
EmailConfigNotNil applies the NotNil predicate on the "email_config" field.
func Enabled ¶
func Enabled(v bool) predicate.NotificationChannel
Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
func EnabledEQ ¶
func EnabledEQ(v bool) predicate.NotificationChannel
EnabledEQ applies the EQ predicate on the "enabled" field.
func EnabledNEQ ¶
func EnabledNEQ(v bool) predicate.NotificationChannel
EnabledNEQ applies the NEQ predicate on the "enabled" field.
func ID ¶
func ID(id int) predicate.NotificationChannel
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.NotificationChannel
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.NotificationChannel
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.NotificationChannel
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.NotificationChannel
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.NotificationChannel
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.NotificationChannel
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.NotificationChannel
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.NotificationChannel
IDNotIn applies the NotIn predicate on the ID field.
func LastUsed ¶
func LastUsed(v time.Time) predicate.NotificationChannel
LastUsed applies equality check predicate on the "last_used" field. It's identical to LastUsedEQ.
func LastUsedEQ ¶
func LastUsedEQ(v time.Time) predicate.NotificationChannel
LastUsedEQ applies the EQ predicate on the "last_used" field.
func LastUsedGT ¶
func LastUsedGT(v time.Time) predicate.NotificationChannel
LastUsedGT applies the GT predicate on the "last_used" field.
func LastUsedGTE ¶
func LastUsedGTE(v time.Time) predicate.NotificationChannel
LastUsedGTE applies the GTE predicate on the "last_used" field.
func LastUsedIn ¶
func LastUsedIn(vs ...time.Time) predicate.NotificationChannel
LastUsedIn applies the In predicate on the "last_used" field.
func LastUsedIsNil ¶
func LastUsedIsNil() predicate.NotificationChannel
LastUsedIsNil applies the IsNil predicate on the "last_used" field.
func LastUsedLT ¶
func LastUsedLT(v time.Time) predicate.NotificationChannel
LastUsedLT applies the LT predicate on the "last_used" field.
func LastUsedLTE ¶
func LastUsedLTE(v time.Time) predicate.NotificationChannel
LastUsedLTE applies the LTE predicate on the "last_used" field.
func LastUsedNEQ ¶
func LastUsedNEQ(v time.Time) predicate.NotificationChannel
LastUsedNEQ applies the NEQ predicate on the "last_used" field.
func LastUsedNotIn ¶
func LastUsedNotIn(vs ...time.Time) predicate.NotificationChannel
LastUsedNotIn applies the NotIn predicate on the "last_used" field.
func LastUsedNotNil ¶
func LastUsedNotNil() predicate.NotificationChannel
LastUsedNotNil applies the NotNil predicate on the "last_used" field.
func LastUsedSuccess ¶
func LastUsedSuccess(v bool) predicate.NotificationChannel
LastUsedSuccess applies equality check predicate on the "last_used_success" field. It's identical to LastUsedSuccessEQ.
func LastUsedSuccessEQ ¶
func LastUsedSuccessEQ(v bool) predicate.NotificationChannel
LastUsedSuccessEQ applies the EQ predicate on the "last_used_success" field.
func LastUsedSuccessIsNil ¶
func LastUsedSuccessIsNil() predicate.NotificationChannel
LastUsedSuccessIsNil applies the IsNil predicate on the "last_used_success" field.
func LastUsedSuccessNEQ ¶
func LastUsedSuccessNEQ(v bool) predicate.NotificationChannel
LastUsedSuccessNEQ applies the NEQ predicate on the "last_used_success" field.
func LastUsedSuccessNotNil ¶
func LastUsedSuccessNotNil() predicate.NotificationChannel
LastUsedSuccessNotNil applies the NotNil predicate on the "last_used_success" 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 SlackConfigIsNil ¶
func SlackConfigIsNil() predicate.NotificationChannel
SlackConfigIsNil applies the IsNil predicate on the "slack_config" field.
func SlackConfigNotNil ¶
func SlackConfigNotNil() predicate.NotificationChannel
SlackConfigNotNil applies the NotNil predicate on the "slack_config" 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 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).
func WebhookConfigIsNil ¶
func WebhookConfigIsNil() predicate.NotificationChannel
WebhookConfigIsNil applies the IsNil predicate on the "webhook_config" field.
func WebhookConfigNotNil ¶
func WebhookConfigNotNil() predicate.NotificationChannel
WebhookConfigNotNil applies the NotNil predicate on the "webhook_config" field.
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 ByEnabled ¶
func ByEnabled(opts ...sql.OrderTermOption) OrderOption
ByEnabled orders the results by the enabled field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastUsed ¶
func ByLastUsed(opts ...sql.OrderTermOption) OrderOption
ByLastUsed orders the results by the last_used field.
func ByLastUsedSuccess ¶
func ByLastUsedSuccess(opts ...sql.OrderTermOption) OrderOption
ByLastUsedSuccess orders the results by the last_used_success field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
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.