notificationchannel

package
v0.0.0-...-83e02d6 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for notificationchannel fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

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

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 ...int) predicate.NotificationChannel

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 ...int) predicate.NotificationChannel

IDNotIn applies the NotIn predicate on the ID field.

func LastUsed

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

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

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

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

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.NotificationChannel

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 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

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

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

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

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

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

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

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

func ValidColumn(column string) bool

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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