notifychannel

package
v0.0.0-...-481d40d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the notifychannel type in the database.
	Label = "notify_channel"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldOwnerType holds the string denoting the owner_type field in the database.
	FieldOwnerType = "owner_type"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldWebhookURL holds the string denoting the webhook_url field in the database.
	FieldWebhookURL = "webhook_url"
	// FieldSecret holds the string denoting the secret field in the database.
	FieldSecret = "secret"
	// FieldHeaders holds the string denoting the headers field in the database.
	FieldHeaders = "headers"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// 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"
	// EdgeSubscriptions holds the string denoting the subscriptions edge name in mutations.
	EdgeSubscriptions = "subscriptions"
	// Table holds the table name of the notifychannel in the database.
	Table = "notify_channels"
	// SubscriptionsTable is the table that holds the subscriptions relation/edge.
	SubscriptionsTable = "notify_subscriptions"
	// SubscriptionsInverseTable is the table name for the NotifySubscription entity.
	// It exists in this package in order to avoid circular dependency with the "notifysubscription" package.
	SubscriptionsInverseTable = "notify_subscriptions"
	// SubscriptionsColumn is the table column denoting the subscriptions relation/edge.
	SubscriptionsColumn = "channel_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultOwnerType holds the default value on creation for the "owner_type" field.
	DefaultOwnerType consts.NotifyOwnerType
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// WebhookURLValidator is a validator for the "webhook_url" field. It is called by the builders before save.
	WebhookURLValidator func(string) error
	// DefaultSecret holds the default value on creation for the "secret" field.
	DefaultSecret string
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// 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
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/chaitin/MonkeyCode/backend/db/runtime"

Columns holds all SQL columns for notifychannel fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.NotifyChannel

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.NotifyChannel

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.NotifyChannel

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.NotifyChannel

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.NotifyChannel

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.NotifyChannel

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.NotifyChannel

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.NotifyChannel

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.NotifyChannel

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.NotifyChannel

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.NotifyChannel

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.NotifyChannel

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.NotifyChannel

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.NotifyChannel

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.NotifyChannel

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.NotifyChannel

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.NotifyChannel

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.NotifyChannel

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.NotifyChannel

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.NotifyChannel

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Enabled

func Enabled(v bool) predicate.NotifyChannel

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.NotifyChannel

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.NotifyChannel

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func HasSubscriptions

func HasSubscriptions() predicate.NotifyChannel

HasSubscriptions applies the HasEdge predicate on the "subscriptions" edge.

func HasSubscriptionsWith

func HasSubscriptionsWith(preds ...predicate.NotifySubscription) predicate.NotifyChannel

HasSubscriptionsWith applies the HasEdge predicate on the "subscriptions" edge with a given conditions (other predicates).

func HeadersIsNil

func HeadersIsNil() predicate.NotifyChannel

HeadersIsNil applies the IsNil predicate on the "headers" field.

func HeadersNotNil

func HeadersNotNil() predicate.NotifyChannel

HeadersNotNil applies the NotNil predicate on the "headers" 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

func IDGTE(id uuid.UUID) predicate.NotifyChannel

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.NotifyChannel

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.NotifyChannel

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.NotifyChannel

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.NotifyChannel

IDNotIn applies the NotIn predicate on the ID field.

func Kind

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v consts.NotifyChannelKind) predicate.NotifyChannel

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

KindGT applies the GT predicate on the "kind" field.

func KindGTE

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

KindIn applies the In predicate on the "kind" field.

func KindLT

KindLT applies the LT predicate on the "kind" field.

func KindLTE

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

KindNotIn applies the NotIn predicate on the "kind" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.NotifyChannel

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.NotifyChannel

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.NotifyChannel

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.NotifyChannel

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.NotifyChannel

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.NotifyChannel

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.NotifyChannel

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.NotifyChannel

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.NotifyChannel

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.NotifyChannel

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.NotifyChannel

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.NotifyChannel

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.NotifyChannel

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 OwnerID

func OwnerID(v uuid.UUID) predicate.NotifyChannel

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v uuid.UUID) predicate.NotifyChannel

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v uuid.UUID) predicate.NotifyChannel

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v uuid.UUID) predicate.NotifyChannel

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...uuid.UUID) predicate.NotifyChannel

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v uuid.UUID) predicate.NotifyChannel

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v uuid.UUID) predicate.NotifyChannel

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v uuid.UUID) predicate.NotifyChannel

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...uuid.UUID) predicate.NotifyChannel

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerType

OwnerType applies equality check predicate on the "owner_type" field. It's identical to OwnerTypeEQ.

func OwnerTypeContains

func OwnerTypeContains(v consts.NotifyOwnerType) predicate.NotifyChannel

OwnerTypeContains applies the Contains predicate on the "owner_type" field.

func OwnerTypeContainsFold

func OwnerTypeContainsFold(v consts.NotifyOwnerType) predicate.NotifyChannel

OwnerTypeContainsFold applies the ContainsFold predicate on the "owner_type" field.

func OwnerTypeEQ

OwnerTypeEQ applies the EQ predicate on the "owner_type" field.

func OwnerTypeEqualFold

func OwnerTypeEqualFold(v consts.NotifyOwnerType) predicate.NotifyChannel

OwnerTypeEqualFold applies the EqualFold predicate on the "owner_type" field.

func OwnerTypeGT

OwnerTypeGT applies the GT predicate on the "owner_type" field.

func OwnerTypeGTE

OwnerTypeGTE applies the GTE predicate on the "owner_type" field.

func OwnerTypeHasPrefix

func OwnerTypeHasPrefix(v consts.NotifyOwnerType) predicate.NotifyChannel

OwnerTypeHasPrefix applies the HasPrefix predicate on the "owner_type" field.

func OwnerTypeHasSuffix

func OwnerTypeHasSuffix(v consts.NotifyOwnerType) predicate.NotifyChannel

OwnerTypeHasSuffix applies the HasSuffix predicate on the "owner_type" field.

func OwnerTypeIn

func OwnerTypeIn(vs ...consts.NotifyOwnerType) predicate.NotifyChannel

OwnerTypeIn applies the In predicate on the "owner_type" field.

func OwnerTypeLT

OwnerTypeLT applies the LT predicate on the "owner_type" field.

func OwnerTypeLTE

OwnerTypeLTE applies the LTE predicate on the "owner_type" field.

func OwnerTypeNEQ

OwnerTypeNEQ applies the NEQ predicate on the "owner_type" field.

func OwnerTypeNotIn

func OwnerTypeNotIn(vs ...consts.NotifyOwnerType) predicate.NotifyChannel

OwnerTypeNotIn applies the NotIn predicate on the "owner_type" field.

func Secret

func Secret(v string) predicate.NotifyChannel

Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.

func SecretContains

func SecretContains(v string) predicate.NotifyChannel

SecretContains applies the Contains predicate on the "secret" field.

func SecretContainsFold

func SecretContainsFold(v string) predicate.NotifyChannel

SecretContainsFold applies the ContainsFold predicate on the "secret" field.

func SecretEQ

func SecretEQ(v string) predicate.NotifyChannel

SecretEQ applies the EQ predicate on the "secret" field.

func SecretEqualFold

func SecretEqualFold(v string) predicate.NotifyChannel

SecretEqualFold applies the EqualFold predicate on the "secret" field.

func SecretGT

func SecretGT(v string) predicate.NotifyChannel

SecretGT applies the GT predicate on the "secret" field.

func SecretGTE

func SecretGTE(v string) predicate.NotifyChannel

SecretGTE applies the GTE predicate on the "secret" field.

func SecretHasPrefix

func SecretHasPrefix(v string) predicate.NotifyChannel

SecretHasPrefix applies the HasPrefix predicate on the "secret" field.

func SecretHasSuffix

func SecretHasSuffix(v string) predicate.NotifyChannel

SecretHasSuffix applies the HasSuffix predicate on the "secret" field.

func SecretIn

func SecretIn(vs ...string) predicate.NotifyChannel

SecretIn applies the In predicate on the "secret" field.

func SecretIsNil

func SecretIsNil() predicate.NotifyChannel

SecretIsNil applies the IsNil predicate on the "secret" field.

func SecretLT

func SecretLT(v string) predicate.NotifyChannel

SecretLT applies the LT predicate on the "secret" field.

func SecretLTE

func SecretLTE(v string) predicate.NotifyChannel

SecretLTE applies the LTE predicate on the "secret" field.

func SecretNEQ

func SecretNEQ(v string) predicate.NotifyChannel

SecretNEQ applies the NEQ predicate on the "secret" field.

func SecretNotIn

func SecretNotIn(vs ...string) predicate.NotifyChannel

SecretNotIn applies the NotIn predicate on the "secret" field.

func SecretNotNil

func SecretNotNil() predicate.NotifyChannel

SecretNotNil applies the NotNil predicate on the "secret" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.NotifyChannel

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.NotifyChannel

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.NotifyChannel

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.NotifyChannel

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.NotifyChannel

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.NotifyChannel

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.NotifyChannel

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.NotifyChannel

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.NotifyChannel

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 WebhookURL

func WebhookURL(v string) predicate.NotifyChannel

WebhookURL applies equality check predicate on the "webhook_url" field. It's identical to WebhookURLEQ.

func WebhookURLContains

func WebhookURLContains(v string) predicate.NotifyChannel

WebhookURLContains applies the Contains predicate on the "webhook_url" field.

func WebhookURLContainsFold

func WebhookURLContainsFold(v string) predicate.NotifyChannel

WebhookURLContainsFold applies the ContainsFold predicate on the "webhook_url" field.

func WebhookURLEQ

func WebhookURLEQ(v string) predicate.NotifyChannel

WebhookURLEQ applies the EQ predicate on the "webhook_url" field.

func WebhookURLEqualFold

func WebhookURLEqualFold(v string) predicate.NotifyChannel

WebhookURLEqualFold applies the EqualFold predicate on the "webhook_url" field.

func WebhookURLGT

func WebhookURLGT(v string) predicate.NotifyChannel

WebhookURLGT applies the GT predicate on the "webhook_url" field.

func WebhookURLGTE

func WebhookURLGTE(v string) predicate.NotifyChannel

WebhookURLGTE applies the GTE predicate on the "webhook_url" field.

func WebhookURLHasPrefix

func WebhookURLHasPrefix(v string) predicate.NotifyChannel

WebhookURLHasPrefix applies the HasPrefix predicate on the "webhook_url" field.

func WebhookURLHasSuffix

func WebhookURLHasSuffix(v string) predicate.NotifyChannel

WebhookURLHasSuffix applies the HasSuffix predicate on the "webhook_url" field.

func WebhookURLIn

func WebhookURLIn(vs ...string) predicate.NotifyChannel

WebhookURLIn applies the In predicate on the "webhook_url" field.

func WebhookURLLT

func WebhookURLLT(v string) predicate.NotifyChannel

WebhookURLLT applies the LT predicate on the "webhook_url" field.

func WebhookURLLTE

func WebhookURLLTE(v string) predicate.NotifyChannel

WebhookURLLTE applies the LTE predicate on the "webhook_url" field.

func WebhookURLNEQ

func WebhookURLNEQ(v string) predicate.NotifyChannel

WebhookURLNEQ applies the NEQ predicate on the "webhook_url" field.

func WebhookURLNotIn

func WebhookURLNotIn(vs ...string) predicate.NotifyChannel

WebhookURLNotIn applies the NotIn predicate on the "webhook_url" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the NotifyChannel queries.

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

func ByKind(opts ...sql.OrderTermOption) OrderOption

ByKind orders the results by the kind field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOwnerID

func ByOwnerID(opts ...sql.OrderTermOption) OrderOption

ByOwnerID orders the results by the owner_id field.

func ByOwnerType

func ByOwnerType(opts ...sql.OrderTermOption) OrderOption

ByOwnerType orders the results by the owner_type field.

func BySecret

func BySecret(opts ...sql.OrderTermOption) OrderOption

BySecret orders the results by the secret field.

func BySubscriptions

func BySubscriptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySubscriptions orders the results by subscriptions terms.

func BySubscriptionsCount

func BySubscriptionsCount(opts ...sql.OrderTermOption) OrderOption

BySubscriptionsCount orders the results by subscriptions count.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByWebhookURL

func ByWebhookURL(opts ...sql.OrderTermOption) OrderOption

ByWebhookURL orders the results by the webhook_url field.

Jump to

Keyboard shortcuts

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