webhook

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the webhook type in the database.
	Label = "webhook"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldMappingID holds the string denoting the mapping_id field in the database.
	FieldMappingID = "mapping_id"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldDestinationURL holds the string denoting the destination_url field in the database.
	FieldDestinationURL = "destination_url"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldCallback holds the string denoting the callback field in the database.
	FieldCallback = "callback"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldSecret holds the string denoting the secret field in the database.
	FieldSecret = "secret"
	// FieldFailures holds the string denoting the failures field in the database.
	FieldFailures = "failures"
	// FieldLastError holds the string denoting the last_error field in the database.
	FieldLastError = "last_error"
	// FieldLastResponse holds the string denoting the last_response field in the database.
	FieldLastResponse = "last_response"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// EdgeIntegrations holds the string denoting the integrations edge name in mutations.
	EdgeIntegrations = "integrations"
	// Table holds the table name of the webhook in the database.
	Table = "webhooks"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "webhooks"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organizations"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// EventsTable is the table that holds the events relation/edge. The primary key declared below.
	EventsTable = "webhook_events"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// IntegrationsTable is the table that holds the integrations relation/edge. The primary key declared below.
	IntegrationsTable = "integration_webhooks"
	// IntegrationsInverseTable is the table name for the Integration entity.
	// It exists in this package in order to avoid circular dependency with the "integration" package.
	IntegrationsInverseTable = "integrations"
)

Variables

View Source
var (
	// EventsPrimaryKey and EventsColumn2 are the table columns denoting the
	// primary key for the events relation (M2M).
	EventsPrimaryKey = []string{"webhook_id", "event_id"}
	// IntegrationsPrimaryKey and IntegrationsColumn2 are the table columns denoting the
	// primary key for the integrations relation (M2M).
	IntegrationsPrimaryKey = []string{"integration_id", "webhook_id"}
)
View Source
var (
	Hooks        [2]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
	// DefaultMappingID holds the default value on creation for the "mapping_id" field.
	DefaultMappingID func() string
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DestinationURLValidator is a validator for the "destination_url" field. It is called by the builders before save.
	DestinationURLValidator func(string) error
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// DefaultFailures holds the default value on creation for the "failures" field.
	DefaultFailures int
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

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/datumforge/datum/internal/ent/generated/runtime"

Columns holds all SQL columns for webhook fields.

Functions

func And

func And(predicates ...predicate.Webhook) predicate.Webhook

And groups predicates with the AND operator between them.

func Callback

func Callback(v string) predicate.Webhook

Callback applies equality check predicate on the "callback" field. It's identical to CallbackEQ.

func CallbackContains

func CallbackContains(v string) predicate.Webhook

CallbackContains applies the Contains predicate on the "callback" field.

func CallbackContainsFold

func CallbackContainsFold(v string) predicate.Webhook

CallbackContainsFold applies the ContainsFold predicate on the "callback" field.

func CallbackEQ

func CallbackEQ(v string) predicate.Webhook

CallbackEQ applies the EQ predicate on the "callback" field.

func CallbackEqualFold

func CallbackEqualFold(v string) predicate.Webhook

CallbackEqualFold applies the EqualFold predicate on the "callback" field.

func CallbackGT

func CallbackGT(v string) predicate.Webhook

CallbackGT applies the GT predicate on the "callback" field.

func CallbackGTE

func CallbackGTE(v string) predicate.Webhook

CallbackGTE applies the GTE predicate on the "callback" field.

func CallbackHasPrefix

func CallbackHasPrefix(v string) predicate.Webhook

CallbackHasPrefix applies the HasPrefix predicate on the "callback" field.

func CallbackHasSuffix

func CallbackHasSuffix(v string) predicate.Webhook

CallbackHasSuffix applies the HasSuffix predicate on the "callback" field.

func CallbackIn

func CallbackIn(vs ...string) predicate.Webhook

CallbackIn applies the In predicate on the "callback" field.

func CallbackIsNil

func CallbackIsNil() predicate.Webhook

CallbackIsNil applies the IsNil predicate on the "callback" field.

func CallbackLT

func CallbackLT(v string) predicate.Webhook

CallbackLT applies the LT predicate on the "callback" field.

func CallbackLTE

func CallbackLTE(v string) predicate.Webhook

CallbackLTE applies the LTE predicate on the "callback" field.

func CallbackNEQ

func CallbackNEQ(v string) predicate.Webhook

CallbackNEQ applies the NEQ predicate on the "callback" field.

func CallbackNotIn

func CallbackNotIn(vs ...string) predicate.Webhook

CallbackNotIn applies the NotIn predicate on the "callback" field.

func CallbackNotNil

func CallbackNotNil() predicate.Webhook

CallbackNotNil applies the NotNil predicate on the "callback" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Webhook

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Webhook

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Webhook

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Webhook

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Webhook

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Webhook

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Webhook

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Webhook

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Webhook

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.Webhook

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.Webhook

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Webhook

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.Webhook

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Webhook

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.Webhook

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.Webhook

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Webhook

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Webhook

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.Webhook

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Webhook

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.Webhook

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.Webhook

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Webhook

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.Webhook

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Webhook

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Webhook

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Webhook

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Webhook

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Webhook

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Webhook

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Webhook

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Webhook

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Webhook

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Webhook

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

func DeletedBy

func DeletedBy(v string) predicate.Webhook

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.Webhook

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.Webhook

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.Webhook

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.Webhook

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.Webhook

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.Webhook

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.Webhook

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.Webhook

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.Webhook

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.Webhook

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.Webhook

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.Webhook

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.Webhook

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.Webhook

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.Webhook

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func Description

func Description(v string) predicate.Webhook

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Webhook

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Webhook

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Webhook

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Webhook

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Webhook

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Webhook

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Webhook

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Webhook

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Webhook

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Webhook

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Webhook

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Webhook

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Webhook

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Webhook

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Webhook

DescriptionNotNil applies the NotNil predicate on the "description" field.

func DestinationURL

func DestinationURL(v string) predicate.Webhook

DestinationURL applies equality check predicate on the "destination_url" field. It's identical to DestinationURLEQ.

func DestinationURLContains

func DestinationURLContains(v string) predicate.Webhook

DestinationURLContains applies the Contains predicate on the "destination_url" field.

func DestinationURLContainsFold

func DestinationURLContainsFold(v string) predicate.Webhook

DestinationURLContainsFold applies the ContainsFold predicate on the "destination_url" field.

func DestinationURLEQ

func DestinationURLEQ(v string) predicate.Webhook

DestinationURLEQ applies the EQ predicate on the "destination_url" field.

func DestinationURLEqualFold

func DestinationURLEqualFold(v string) predicate.Webhook

DestinationURLEqualFold applies the EqualFold predicate on the "destination_url" field.

func DestinationURLGT

func DestinationURLGT(v string) predicate.Webhook

DestinationURLGT applies the GT predicate on the "destination_url" field.

func DestinationURLGTE

func DestinationURLGTE(v string) predicate.Webhook

DestinationURLGTE applies the GTE predicate on the "destination_url" field.

func DestinationURLHasPrefix

func DestinationURLHasPrefix(v string) predicate.Webhook

DestinationURLHasPrefix applies the HasPrefix predicate on the "destination_url" field.

func DestinationURLHasSuffix

func DestinationURLHasSuffix(v string) predicate.Webhook

DestinationURLHasSuffix applies the HasSuffix predicate on the "destination_url" field.

func DestinationURLIn

func DestinationURLIn(vs ...string) predicate.Webhook

DestinationURLIn applies the In predicate on the "destination_url" field.

func DestinationURLLT

func DestinationURLLT(v string) predicate.Webhook

DestinationURLLT applies the LT predicate on the "destination_url" field.

func DestinationURLLTE

func DestinationURLLTE(v string) predicate.Webhook

DestinationURLLTE applies the LTE predicate on the "destination_url" field.

func DestinationURLNEQ

func DestinationURLNEQ(v string) predicate.Webhook

DestinationURLNEQ applies the NEQ predicate on the "destination_url" field.

func DestinationURLNotIn

func DestinationURLNotIn(vs ...string) predicate.Webhook

DestinationURLNotIn applies the NotIn predicate on the "destination_url" field.

func Enabled

func Enabled(v bool) predicate.Webhook

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

func EnabledEQ

func EnabledEQ(v bool) predicate.Webhook

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

func EnabledNEQ

func EnabledNEQ(v bool) predicate.Webhook

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Webhook

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Webhook

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Webhook

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Webhook

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Webhook

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.Webhook

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Webhook

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Webhook

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Webhook

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Webhook

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.Webhook

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func Failures

func Failures(v int) predicate.Webhook

Failures applies equality check predicate on the "failures" field. It's identical to FailuresEQ.

func FailuresEQ

func FailuresEQ(v int) predicate.Webhook

FailuresEQ applies the EQ predicate on the "failures" field.

func FailuresGT

func FailuresGT(v int) predicate.Webhook

FailuresGT applies the GT predicate on the "failures" field.

func FailuresGTE

func FailuresGTE(v int) predicate.Webhook

FailuresGTE applies the GTE predicate on the "failures" field.

func FailuresIn

func FailuresIn(vs ...int) predicate.Webhook

FailuresIn applies the In predicate on the "failures" field.

func FailuresIsNil

func FailuresIsNil() predicate.Webhook

FailuresIsNil applies the IsNil predicate on the "failures" field.

func FailuresLT

func FailuresLT(v int) predicate.Webhook

FailuresLT applies the LT predicate on the "failures" field.

func FailuresLTE

func FailuresLTE(v int) predicate.Webhook

FailuresLTE applies the LTE predicate on the "failures" field.

func FailuresNEQ

func FailuresNEQ(v int) predicate.Webhook

FailuresNEQ applies the NEQ predicate on the "failures" field.

func FailuresNotIn

func FailuresNotIn(vs ...int) predicate.Webhook

FailuresNotIn applies the NotIn predicate on the "failures" field.

func FailuresNotNil

func FailuresNotNil() predicate.Webhook

FailuresNotNil applies the NotNil predicate on the "failures" field.

func HasEvents

func HasEvents() predicate.Webhook

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.Webhook

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

func HasIntegrations added in v0.5.2

func HasIntegrations() predicate.Webhook

HasIntegrations applies the HasEdge predicate on the "integrations" edge.

func HasIntegrationsWith added in v0.5.2

func HasIntegrationsWith(preds ...predicate.Integration) predicate.Webhook

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

func HasOwner

func HasOwner() predicate.Webhook

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.Webhook

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

func ID

func ID(id string) predicate.Webhook

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Webhook

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Webhook

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Webhook

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Webhook

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Webhook

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Webhook

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Webhook

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Webhook

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Webhook

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Webhook

IDNotIn applies the NotIn predicate on the ID field.

func LastError

func LastError(v string) predicate.Webhook

LastError applies equality check predicate on the "last_error" field. It's identical to LastErrorEQ.

func LastErrorContains

func LastErrorContains(v string) predicate.Webhook

LastErrorContains applies the Contains predicate on the "last_error" field.

func LastErrorContainsFold

func LastErrorContainsFold(v string) predicate.Webhook

LastErrorContainsFold applies the ContainsFold predicate on the "last_error" field.

func LastErrorEQ

func LastErrorEQ(v string) predicate.Webhook

LastErrorEQ applies the EQ predicate on the "last_error" field.

func LastErrorEqualFold

func LastErrorEqualFold(v string) predicate.Webhook

LastErrorEqualFold applies the EqualFold predicate on the "last_error" field.

func LastErrorGT

func LastErrorGT(v string) predicate.Webhook

LastErrorGT applies the GT predicate on the "last_error" field.

func LastErrorGTE

func LastErrorGTE(v string) predicate.Webhook

LastErrorGTE applies the GTE predicate on the "last_error" field.

func LastErrorHasPrefix

func LastErrorHasPrefix(v string) predicate.Webhook

LastErrorHasPrefix applies the HasPrefix predicate on the "last_error" field.

func LastErrorHasSuffix

func LastErrorHasSuffix(v string) predicate.Webhook

LastErrorHasSuffix applies the HasSuffix predicate on the "last_error" field.

func LastErrorIn

func LastErrorIn(vs ...string) predicate.Webhook

LastErrorIn applies the In predicate on the "last_error" field.

func LastErrorIsNil

func LastErrorIsNil() predicate.Webhook

LastErrorIsNil applies the IsNil predicate on the "last_error" field.

func LastErrorLT

func LastErrorLT(v string) predicate.Webhook

LastErrorLT applies the LT predicate on the "last_error" field.

func LastErrorLTE

func LastErrorLTE(v string) predicate.Webhook

LastErrorLTE applies the LTE predicate on the "last_error" field.

func LastErrorNEQ

func LastErrorNEQ(v string) predicate.Webhook

LastErrorNEQ applies the NEQ predicate on the "last_error" field.

func LastErrorNotIn

func LastErrorNotIn(vs ...string) predicate.Webhook

LastErrorNotIn applies the NotIn predicate on the "last_error" field.

func LastErrorNotNil

func LastErrorNotNil() predicate.Webhook

LastErrorNotNil applies the NotNil predicate on the "last_error" field.

func LastResponse

func LastResponse(v string) predicate.Webhook

LastResponse applies equality check predicate on the "last_response" field. It's identical to LastResponseEQ.

func LastResponseContains

func LastResponseContains(v string) predicate.Webhook

LastResponseContains applies the Contains predicate on the "last_response" field.

func LastResponseContainsFold

func LastResponseContainsFold(v string) predicate.Webhook

LastResponseContainsFold applies the ContainsFold predicate on the "last_response" field.

func LastResponseEQ

func LastResponseEQ(v string) predicate.Webhook

LastResponseEQ applies the EQ predicate on the "last_response" field.

func LastResponseEqualFold

func LastResponseEqualFold(v string) predicate.Webhook

LastResponseEqualFold applies the EqualFold predicate on the "last_response" field.

func LastResponseGT

func LastResponseGT(v string) predicate.Webhook

LastResponseGT applies the GT predicate on the "last_response" field.

func LastResponseGTE

func LastResponseGTE(v string) predicate.Webhook

LastResponseGTE applies the GTE predicate on the "last_response" field.

func LastResponseHasPrefix

func LastResponseHasPrefix(v string) predicate.Webhook

LastResponseHasPrefix applies the HasPrefix predicate on the "last_response" field.

func LastResponseHasSuffix

func LastResponseHasSuffix(v string) predicate.Webhook

LastResponseHasSuffix applies the HasSuffix predicate on the "last_response" field.

func LastResponseIn

func LastResponseIn(vs ...string) predicate.Webhook

LastResponseIn applies the In predicate on the "last_response" field.

func LastResponseIsNil

func LastResponseIsNil() predicate.Webhook

LastResponseIsNil applies the IsNil predicate on the "last_response" field.

func LastResponseLT

func LastResponseLT(v string) predicate.Webhook

LastResponseLT applies the LT predicate on the "last_response" field.

func LastResponseLTE

func LastResponseLTE(v string) predicate.Webhook

LastResponseLTE applies the LTE predicate on the "last_response" field.

func LastResponseNEQ

func LastResponseNEQ(v string) predicate.Webhook

LastResponseNEQ applies the NEQ predicate on the "last_response" field.

func LastResponseNotIn

func LastResponseNotIn(vs ...string) predicate.Webhook

LastResponseNotIn applies the NotIn predicate on the "last_response" field.

func LastResponseNotNil

func LastResponseNotNil() predicate.Webhook

LastResponseNotNil applies the NotNil predicate on the "last_response" field.

func MappingID

func MappingID(v string) predicate.Webhook

MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.

func MappingIDContains

func MappingIDContains(v string) predicate.Webhook

MappingIDContains applies the Contains predicate on the "mapping_id" field.

func MappingIDContainsFold

func MappingIDContainsFold(v string) predicate.Webhook

MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.

func MappingIDEQ

func MappingIDEQ(v string) predicate.Webhook

MappingIDEQ applies the EQ predicate on the "mapping_id" field.

func MappingIDEqualFold

func MappingIDEqualFold(v string) predicate.Webhook

MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.

func MappingIDGT

func MappingIDGT(v string) predicate.Webhook

MappingIDGT applies the GT predicate on the "mapping_id" field.

func MappingIDGTE

func MappingIDGTE(v string) predicate.Webhook

MappingIDGTE applies the GTE predicate on the "mapping_id" field.

func MappingIDHasPrefix

func MappingIDHasPrefix(v string) predicate.Webhook

MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.

func MappingIDHasSuffix

func MappingIDHasSuffix(v string) predicate.Webhook

MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.

func MappingIDIn

func MappingIDIn(vs ...string) predicate.Webhook

MappingIDIn applies the In predicate on the "mapping_id" field.

func MappingIDLT

func MappingIDLT(v string) predicate.Webhook

MappingIDLT applies the LT predicate on the "mapping_id" field.

func MappingIDLTE

func MappingIDLTE(v string) predicate.Webhook

MappingIDLTE applies the LTE predicate on the "mapping_id" field.

func MappingIDNEQ

func MappingIDNEQ(v string) predicate.Webhook

MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.

func MappingIDNotIn

func MappingIDNotIn(vs ...string) predicate.Webhook

MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.

func Name

func Name(v string) predicate.Webhook

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

func NameContains

func NameContains(v string) predicate.Webhook

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

func NameContainsFold

func NameContainsFold(v string) predicate.Webhook

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

func NameEQ

func NameEQ(v string) predicate.Webhook

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

func NameEqualFold

func NameEqualFold(v string) predicate.Webhook

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

func NameGT

func NameGT(v string) predicate.Webhook

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

func NameGTE

func NameGTE(v string) predicate.Webhook

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Webhook

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Webhook

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Webhook

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

func NameLTE

func NameLTE(v string) predicate.Webhook

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

func NameNEQ

func NameNEQ(v string) predicate.Webhook

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

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Webhook) predicate.Webhook

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.Webhook

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

func OwnerIDContains

func OwnerIDContains(v string) predicate.Webhook

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Webhook

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Webhook

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

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Webhook

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.Webhook

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

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Webhook

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

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Webhook

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Webhook

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.Webhook

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

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Webhook

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.Webhook

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

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Webhook

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

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Webhook

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

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.Webhook

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

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Webhook

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func Secret

func Secret(v []byte) predicate.Webhook

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

func SecretEQ

func SecretEQ(v []byte) predicate.Webhook

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

func SecretGT

func SecretGT(v []byte) predicate.Webhook

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

func SecretGTE

func SecretGTE(v []byte) predicate.Webhook

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

func SecretIn

func SecretIn(vs ...[]byte) predicate.Webhook

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

func SecretIsNil

func SecretIsNil() predicate.Webhook

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

func SecretLT

func SecretLT(v []byte) predicate.Webhook

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

func SecretLTE

func SecretLTE(v []byte) predicate.Webhook

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

func SecretNEQ

func SecretNEQ(v []byte) predicate.Webhook

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

func SecretNotIn

func SecretNotIn(vs ...[]byte) predicate.Webhook

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

func SecretNotNil

func SecretNotNil() predicate.Webhook

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

func TagsIsNil added in v0.5.2

func TagsIsNil() predicate.Webhook

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil added in v0.5.2

func TagsNotNil() predicate.Webhook

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Webhook

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Webhook

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Webhook

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Webhook

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Webhook

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Webhook

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Webhook

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Webhook

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Webhook

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.Webhook

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.Webhook

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Webhook

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Webhook

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Webhook

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.Webhook

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Webhook

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Webhook

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Webhook

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.Webhook

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Webhook

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.Webhook

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Webhook

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Webhook

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.Webhook

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Webhook

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Webhook queries.

func ByCallback

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

ByCallback orders the results by the callback field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

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

ByDeletedBy orders the results by the deleted_by field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByDestinationURL

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

ByDestinationURL orders the results by the destination_url field.

func ByEnabled

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

ByEnabled orders the results by the enabled field.

func ByEvents

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

ByEvents orders the results by events terms.

func ByEventsCount

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

ByEventsCount orders the results by events count.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByFailures

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

ByFailures orders the results by the failures field.

func ByID

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

ByID orders the results by the id field.

func ByIntegrations added in v0.5.2

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

ByIntegrations orders the results by integrations terms.

func ByIntegrationsCount added in v0.5.2

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

ByIntegrationsCount orders the results by integrations count.

func ByLastError

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

ByLastError orders the results by the last_error field.

func ByLastResponse

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

ByLastResponse orders the results by the last_response field.

func ByMappingID

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

ByMappingID orders the results by the mapping_id field.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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