event

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the event type in the database.
	Label = "event"
	// 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"
	// FieldEventID holds the string denoting the event_id field in the database.
	FieldEventID = "event_id"
	// FieldCorrelationID holds the string denoting the correlation_id field in the database.
	FieldCorrelationID = "correlation_id"
	// FieldEventType holds the string denoting the event_type field in the database.
	FieldEventType = "event_type"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeIntegration holds the string denoting the integration edge name in mutations.
	EdgeIntegration = "integration"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeInvite holds the string denoting the invite edge name in mutations.
	EdgeInvite = "invite"
	// EdgeFeature holds the string denoting the feature edge name in mutations.
	EdgeFeature = "feature"
	// EdgeEntitlementplan holds the string denoting the entitlementplan edge name in mutations.
	EdgeEntitlementplan = "entitlementplan"
	// EdgeEntitlementplanfeature holds the string denoting the entitlementplanfeature edge name in mutations.
	EdgeEntitlementplanfeature = "entitlementplanfeature"
	// EdgePersonalAccessToken holds the string denoting the personal_access_token edge name in mutations.
	EdgePersonalAccessToken = "personal_access_token"
	// EdgeOauth2token holds the string denoting the oauth2token edge name in mutations.
	EdgeOauth2token = "oauth2token"
	// EdgeHush holds the string denoting the hush edge name in mutations.
	EdgeHush = "hush"
	// EdgeOrgmembership holds the string denoting the orgmembership edge name in mutations.
	EdgeOrgmembership = "orgmembership"
	// EdgeGroupmembership holds the string denoting the groupmembership edge name in mutations.
	EdgeGroupmembership = "groupmembership"
	// EdgeEntitlement holds the string denoting the entitlement edge name in mutations.
	EdgeEntitlement = "entitlement"
	// EdgeWebhook holds the string denoting the webhook edge name in mutations.
	EdgeWebhook = "webhook"
	// EdgeSubscriber holds the string denoting the subscriber edge name in mutations.
	EdgeSubscriber = "subscriber"
	// EdgeFile holds the string denoting the file edge name in mutations.
	EdgeFile = "file"
	// Table holds the table name of the event in the database.
	Table = "events"
	// UserTable is the table that holds the user relation/edge. The primary key declared below.
	UserTable = "user_events"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// GroupTable is the table that holds the group relation/edge. The primary key declared below.
	GroupTable = "group_events"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "groups"
	// IntegrationTable is the table that holds the integration relation/edge. The primary key declared below.
	IntegrationTable = "integration_events"
	// IntegrationInverseTable is the table name for the Integration entity.
	// It exists in this package in order to avoid circular dependency with the "integration" package.
	IntegrationInverseTable = "integrations"
	// OrganizationTable is the table that holds the organization relation/edge. The primary key declared below.
	OrganizationTable = "organization_events"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// InviteTable is the table that holds the invite relation/edge. The primary key declared below.
	InviteTable = "invite_events"
	// InviteInverseTable is the table name for the Invite entity.
	// It exists in this package in order to avoid circular dependency with the "invite" package.
	InviteInverseTable = "invites"
	// FeatureTable is the table that holds the feature relation/edge. The primary key declared below.
	FeatureTable = "feature_events"
	// FeatureInverseTable is the table name for the Feature entity.
	// It exists in this package in order to avoid circular dependency with the "feature" package.
	FeatureInverseTable = "features"
	// EntitlementplanTable is the table that holds the entitlementplan relation/edge. The primary key declared below.
	EntitlementplanTable = "entitlement_plan_events"
	// EntitlementplanInverseTable is the table name for the EntitlementPlan entity.
	// It exists in this package in order to avoid circular dependency with the "entitlementplan" package.
	EntitlementplanInverseTable = "entitlement_plans"
	// EntitlementplanfeatureTable is the table that holds the entitlementplanfeature relation/edge. The primary key declared below.
	EntitlementplanfeatureTable = "entitlement_plan_feature_events"
	// EntitlementplanfeatureInverseTable is the table name for the EntitlementPlanFeature entity.
	// It exists in this package in order to avoid circular dependency with the "entitlementplanfeature" package.
	EntitlementplanfeatureInverseTable = "entitlement_plan_features"
	// PersonalAccessTokenTable is the table that holds the personal_access_token relation/edge. The primary key declared below.
	PersonalAccessTokenTable = "personal_access_token_events"
	// PersonalAccessTokenInverseTable is the table name for the PersonalAccessToken entity.
	// It exists in this package in order to avoid circular dependency with the "personalaccesstoken" package.
	PersonalAccessTokenInverseTable = "personal_access_tokens"
	// Oauth2tokenTable is the table that holds the oauth2token relation/edge. The primary key declared below.
	Oauth2tokenTable = "oh_auth_too_token_events"
	// Oauth2tokenInverseTable is the table name for the OhAuthTooToken entity.
	// It exists in this package in order to avoid circular dependency with the "ohauthtootoken" package.
	Oauth2tokenInverseTable = "oh_auth_too_tokens"
	// HushTable is the table that holds the hush relation/edge. The primary key declared below.
	HushTable = "hush_events"
	// HushInverseTable is the table name for the Hush entity.
	// It exists in this package in order to avoid circular dependency with the "hush" package.
	HushInverseTable = "hushes"
	// OrgmembershipTable is the table that holds the orgmembership relation/edge. The primary key declared below.
	OrgmembershipTable = "org_membership_events"
	// OrgmembershipInverseTable is the table name for the OrgMembership entity.
	// It exists in this package in order to avoid circular dependency with the "orgmembership" package.
	OrgmembershipInverseTable = "org_memberships"
	// GroupmembershipTable is the table that holds the groupmembership relation/edge. The primary key declared below.
	GroupmembershipTable = "group_membership_events"
	// GroupmembershipInverseTable is the table name for the GroupMembership entity.
	// It exists in this package in order to avoid circular dependency with the "groupmembership" package.
	GroupmembershipInverseTable = "group_memberships"
	// EntitlementTable is the table that holds the entitlement relation/edge. The primary key declared below.
	EntitlementTable = "entitlement_events"
	// EntitlementInverseTable is the table name for the Entitlement entity.
	// It exists in this package in order to avoid circular dependency with the "entitlement" package.
	EntitlementInverseTable = "entitlements"
	// WebhookTable is the table that holds the webhook relation/edge. The primary key declared below.
	WebhookTable = "webhook_events"
	// WebhookInverseTable is the table name for the Webhook entity.
	// It exists in this package in order to avoid circular dependency with the "webhook" package.
	WebhookInverseTable = "webhooks"
	// SubscriberTable is the table that holds the subscriber relation/edge. The primary key declared below.
	SubscriberTable = "subscriber_events"
	// SubscriberInverseTable is the table name for the Subscriber entity.
	// It exists in this package in order to avoid circular dependency with the "subscriber" package.
	SubscriberInverseTable = "subscribers"
	// FileTable is the table that holds the file relation/edge. The primary key declared below.
	FileTable = "file_events"
	// FileInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FileInverseTable = "files"
)

Variables

View Source
var (
	// UserPrimaryKey and UserColumn2 are the table columns denoting the
	// primary key for the user relation (M2M).
	UserPrimaryKey = []string{"user_id", "event_id"}
	// GroupPrimaryKey and GroupColumn2 are the table columns denoting the
	// primary key for the group relation (M2M).
	GroupPrimaryKey = []string{"group_id", "event_id"}
	// IntegrationPrimaryKey and IntegrationColumn2 are the table columns denoting the
	// primary key for the integration relation (M2M).
	IntegrationPrimaryKey = []string{"integration_id", "event_id"}
	// OrganizationPrimaryKey and OrganizationColumn2 are the table columns denoting the
	// primary key for the organization relation (M2M).
	OrganizationPrimaryKey = []string{"organization_id", "event_id"}
	// InvitePrimaryKey and InviteColumn2 are the table columns denoting the
	// primary key for the invite relation (M2M).
	InvitePrimaryKey = []string{"invite_id", "event_id"}
	// FeaturePrimaryKey and FeatureColumn2 are the table columns denoting the
	// primary key for the feature relation (M2M).
	FeaturePrimaryKey = []string{"feature_id", "event_id"}
	// EntitlementplanPrimaryKey and EntitlementplanColumn2 are the table columns denoting the
	// primary key for the entitlementplan relation (M2M).
	EntitlementplanPrimaryKey = []string{"entitlement_plan_id", "event_id"}
	// EntitlementplanfeaturePrimaryKey and EntitlementplanfeatureColumn2 are the table columns denoting the
	// primary key for the entitlementplanfeature relation (M2M).
	EntitlementplanfeaturePrimaryKey = []string{"entitlement_plan_feature_id", "event_id"}
	// PersonalAccessTokenPrimaryKey and PersonalAccessTokenColumn2 are the table columns denoting the
	// primary key for the personal_access_token relation (M2M).
	PersonalAccessTokenPrimaryKey = []string{"personal_access_token_id", "event_id"}
	// Oauth2tokenPrimaryKey and Oauth2tokenColumn2 are the table columns denoting the
	// primary key for the oauth2token relation (M2M).
	Oauth2tokenPrimaryKey = []string{"oh_auth_too_token_id", "event_id"}
	// HushPrimaryKey and HushColumn2 are the table columns denoting the
	// primary key for the hush relation (M2M).
	HushPrimaryKey = []string{"hush_id", "event_id"}
	// OrgmembershipPrimaryKey and OrgmembershipColumn2 are the table columns denoting the
	// primary key for the orgmembership relation (M2M).
	OrgmembershipPrimaryKey = []string{"org_membership_id", "event_id"}
	// GroupmembershipPrimaryKey and GroupmembershipColumn2 are the table columns denoting the
	// primary key for the groupmembership relation (M2M).
	GroupmembershipPrimaryKey = []string{"group_membership_id", "event_id"}
	// EntitlementPrimaryKey and EntitlementColumn2 are the table columns denoting the
	// primary key for the entitlement relation (M2M).
	EntitlementPrimaryKey = []string{"entitlement_id", "event_id"}
	// WebhookPrimaryKey and WebhookColumn2 are the table columns denoting the
	// primary key for the webhook relation (M2M).
	WebhookPrimaryKey = []string{"webhook_id", "event_id"}
	// SubscriberPrimaryKey and SubscriberColumn2 are the table columns denoting the
	// primary key for the subscriber relation (M2M).
	SubscriberPrimaryKey = []string{"subscriber_id", "event_id"}
	// FilePrimaryKey and FileColumn2 are the table columns denoting the
	// primary key for the file relation (M2M).
	FilePrimaryKey = []string{"file_id", "event_id"}
)
View Source
var (
	Hooks [1]ent.Hook
	// 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
	// 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/theopenlane/core/internal/ent/generated/runtime"

Columns holds all SQL columns for event fields.

Functions

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func CorrelationID

func CorrelationID(v string) predicate.Event

CorrelationID applies equality check predicate on the "correlation_id" field. It's identical to CorrelationIDEQ.

func CorrelationIDContains

func CorrelationIDContains(v string) predicate.Event

CorrelationIDContains applies the Contains predicate on the "correlation_id" field.

func CorrelationIDContainsFold

func CorrelationIDContainsFold(v string) predicate.Event

CorrelationIDContainsFold applies the ContainsFold predicate on the "correlation_id" field.

func CorrelationIDEQ

func CorrelationIDEQ(v string) predicate.Event

CorrelationIDEQ applies the EQ predicate on the "correlation_id" field.

func CorrelationIDEqualFold

func CorrelationIDEqualFold(v string) predicate.Event

CorrelationIDEqualFold applies the EqualFold predicate on the "correlation_id" field.

func CorrelationIDGT

func CorrelationIDGT(v string) predicate.Event

CorrelationIDGT applies the GT predicate on the "correlation_id" field.

func CorrelationIDGTE

func CorrelationIDGTE(v string) predicate.Event

CorrelationIDGTE applies the GTE predicate on the "correlation_id" field.

func CorrelationIDHasPrefix

func CorrelationIDHasPrefix(v string) predicate.Event

CorrelationIDHasPrefix applies the HasPrefix predicate on the "correlation_id" field.

func CorrelationIDHasSuffix

func CorrelationIDHasSuffix(v string) predicate.Event

CorrelationIDHasSuffix applies the HasSuffix predicate on the "correlation_id" field.

func CorrelationIDIn

func CorrelationIDIn(vs ...string) predicate.Event

CorrelationIDIn applies the In predicate on the "correlation_id" field.

func CorrelationIDIsNil

func CorrelationIDIsNil() predicate.Event

CorrelationIDIsNil applies the IsNil predicate on the "correlation_id" field.

func CorrelationIDLT

func CorrelationIDLT(v string) predicate.Event

CorrelationIDLT applies the LT predicate on the "correlation_id" field.

func CorrelationIDLTE

func CorrelationIDLTE(v string) predicate.Event

CorrelationIDLTE applies the LTE predicate on the "correlation_id" field.

func CorrelationIDNEQ

func CorrelationIDNEQ(v string) predicate.Event

CorrelationIDNEQ applies the NEQ predicate on the "correlation_id" field.

func CorrelationIDNotIn

func CorrelationIDNotIn(vs ...string) predicate.Event

CorrelationIDNotIn applies the NotIn predicate on the "correlation_id" field.

func CorrelationIDNotNil

func CorrelationIDNotNil() predicate.Event

CorrelationIDNotNil applies the NotNil predicate on the "correlation_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Event

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Event

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Event

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Event

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Event

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Event

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Event

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Event

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Event

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

func CreatedBy

func CreatedBy(v string) predicate.Event

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

func CreatedByContains

func CreatedByContains(v string) predicate.Event

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Event

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.Event

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Event

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

func CreatedByGT

func CreatedByGT(v string) predicate.Event

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.Event

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Event

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Event

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.Event

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

func CreatedByLT

func CreatedByLT(v string) predicate.Event

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.Event

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Event

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.Event

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

func EventID

func EventID(v string) predicate.Event

EventID applies equality check predicate on the "event_id" field. It's identical to EventIDEQ.

func EventIDContains

func EventIDContains(v string) predicate.Event

EventIDContains applies the Contains predicate on the "event_id" field.

func EventIDContainsFold

func EventIDContainsFold(v string) predicate.Event

EventIDContainsFold applies the ContainsFold predicate on the "event_id" field.

func EventIDEQ

func EventIDEQ(v string) predicate.Event

EventIDEQ applies the EQ predicate on the "event_id" field.

func EventIDEqualFold

func EventIDEqualFold(v string) predicate.Event

EventIDEqualFold applies the EqualFold predicate on the "event_id" field.

func EventIDGT

func EventIDGT(v string) predicate.Event

EventIDGT applies the GT predicate on the "event_id" field.

func EventIDGTE

func EventIDGTE(v string) predicate.Event

EventIDGTE applies the GTE predicate on the "event_id" field.

func EventIDHasPrefix

func EventIDHasPrefix(v string) predicate.Event

EventIDHasPrefix applies the HasPrefix predicate on the "event_id" field.

func EventIDHasSuffix

func EventIDHasSuffix(v string) predicate.Event

EventIDHasSuffix applies the HasSuffix predicate on the "event_id" field.

func EventIDIn

func EventIDIn(vs ...string) predicate.Event

EventIDIn applies the In predicate on the "event_id" field.

func EventIDIsNil

func EventIDIsNil() predicate.Event

EventIDIsNil applies the IsNil predicate on the "event_id" field.

func EventIDLT

func EventIDLT(v string) predicate.Event

EventIDLT applies the LT predicate on the "event_id" field.

func EventIDLTE

func EventIDLTE(v string) predicate.Event

EventIDLTE applies the LTE predicate on the "event_id" field.

func EventIDNEQ

func EventIDNEQ(v string) predicate.Event

EventIDNEQ applies the NEQ predicate on the "event_id" field.

func EventIDNotIn

func EventIDNotIn(vs ...string) predicate.Event

EventIDNotIn applies the NotIn predicate on the "event_id" field.

func EventIDNotNil

func EventIDNotNil() predicate.Event

EventIDNotNil applies the NotNil predicate on the "event_id" field.

func EventType

func EventType(v string) predicate.Event

EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.

func EventTypeContains

func EventTypeContains(v string) predicate.Event

EventTypeContains applies the Contains predicate on the "event_type" field.

func EventTypeContainsFold

func EventTypeContainsFold(v string) predicate.Event

EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.

func EventTypeEQ

func EventTypeEQ(v string) predicate.Event

EventTypeEQ applies the EQ predicate on the "event_type" field.

func EventTypeEqualFold

func EventTypeEqualFold(v string) predicate.Event

EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.

func EventTypeGT

func EventTypeGT(v string) predicate.Event

EventTypeGT applies the GT predicate on the "event_type" field.

func EventTypeGTE

func EventTypeGTE(v string) predicate.Event

EventTypeGTE applies the GTE predicate on the "event_type" field.

func EventTypeHasPrefix

func EventTypeHasPrefix(v string) predicate.Event

EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.

func EventTypeHasSuffix

func EventTypeHasSuffix(v string) predicate.Event

EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.

func EventTypeIn

func EventTypeIn(vs ...string) predicate.Event

EventTypeIn applies the In predicate on the "event_type" field.

func EventTypeLT

func EventTypeLT(v string) predicate.Event

EventTypeLT applies the LT predicate on the "event_type" field.

func EventTypeLTE

func EventTypeLTE(v string) predicate.Event

EventTypeLTE applies the LTE predicate on the "event_type" field.

func EventTypeNEQ

func EventTypeNEQ(v string) predicate.Event

EventTypeNEQ applies the NEQ predicate on the "event_type" field.

func EventTypeNotIn

func EventTypeNotIn(vs ...string) predicate.Event

EventTypeNotIn applies the NotIn predicate on the "event_type" field.

func HasEntitlement

func HasEntitlement() predicate.Event

HasEntitlement applies the HasEdge predicate on the "entitlement" edge.

func HasEntitlementWith

func HasEntitlementWith(preds ...predicate.Entitlement) predicate.Event

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

func HasEntitlementplan

func HasEntitlementplan() predicate.Event

HasEntitlementplan applies the HasEdge predicate on the "entitlementplan" edge.

func HasEntitlementplanWith

func HasEntitlementplanWith(preds ...predicate.EntitlementPlan) predicate.Event

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

func HasEntitlementplanfeature

func HasEntitlementplanfeature() predicate.Event

HasEntitlementplanfeature applies the HasEdge predicate on the "entitlementplanfeature" edge.

func HasEntitlementplanfeatureWith

func HasEntitlementplanfeatureWith(preds ...predicate.EntitlementPlanFeature) predicate.Event

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

func HasFeature

func HasFeature() predicate.Event

HasFeature applies the HasEdge predicate on the "feature" edge.

func HasFeatureWith

func HasFeatureWith(preds ...predicate.Feature) predicate.Event

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

func HasFile added in v0.3.0

func HasFile() predicate.Event

HasFile applies the HasEdge predicate on the "file" edge.

func HasFileWith added in v0.3.0

func HasFileWith(preds ...predicate.File) predicate.Event

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

func HasGroup

func HasGroup() predicate.Event

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.Event

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

func HasGroupmembership

func HasGroupmembership() predicate.Event

HasGroupmembership applies the HasEdge predicate on the "groupmembership" edge.

func HasGroupmembershipWith

func HasGroupmembershipWith(preds ...predicate.GroupMembership) predicate.Event

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

func HasHush

func HasHush() predicate.Event

HasHush applies the HasEdge predicate on the "hush" edge.

func HasHushWith

func HasHushWith(preds ...predicate.Hush) predicate.Event

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

func HasIntegration

func HasIntegration() predicate.Event

HasIntegration applies the HasEdge predicate on the "integration" edge.

func HasIntegrationWith

func HasIntegrationWith(preds ...predicate.Integration) predicate.Event

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

func HasInvite

func HasInvite() predicate.Event

HasInvite applies the HasEdge predicate on the "invite" edge.

func HasInviteWith

func HasInviteWith(preds ...predicate.Invite) predicate.Event

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

func HasOauth2token

func HasOauth2token() predicate.Event

HasOauth2token applies the HasEdge predicate on the "oauth2token" edge.

func HasOauth2tokenWith

func HasOauth2tokenWith(preds ...predicate.OhAuthTooToken) predicate.Event

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

func HasOrganization

func HasOrganization() predicate.Event

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Event

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

func HasOrgmembership

func HasOrgmembership() predicate.Event

HasOrgmembership applies the HasEdge predicate on the "orgmembership" edge.

func HasOrgmembershipWith

func HasOrgmembershipWith(preds ...predicate.OrgMembership) predicate.Event

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

func HasPersonalAccessToken

func HasPersonalAccessToken() predicate.Event

HasPersonalAccessToken applies the HasEdge predicate on the "personal_access_token" edge.

func HasPersonalAccessTokenWith

func HasPersonalAccessTokenWith(preds ...predicate.PersonalAccessToken) predicate.Event

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

func HasSubscriber

func HasSubscriber() predicate.Event

HasSubscriber applies the HasEdge predicate on the "subscriber" edge.

func HasSubscriberWith

func HasSubscriberWith(preds ...predicate.Subscriber) predicate.Event

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

func HasUser

func HasUser() predicate.Event

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Event

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

func HasWebhook

func HasWebhook() predicate.Event

HasWebhook applies the HasEdge predicate on the "webhook" edge.

func HasWebhookWith

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

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

func ID

func ID(id string) predicate.Event

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Event

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Event

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MappingID

func MappingID(v string) predicate.Event

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

func MappingIDContains

func MappingIDContains(v string) predicate.Event

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

func MappingIDContainsFold

func MappingIDContainsFold(v string) predicate.Event

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

func MappingIDEQ

func MappingIDEQ(v string) predicate.Event

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

func MappingIDEqualFold

func MappingIDEqualFold(v string) predicate.Event

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

func MappingIDGT

func MappingIDGT(v string) predicate.Event

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

func MappingIDGTE

func MappingIDGTE(v string) predicate.Event

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

func MappingIDHasPrefix

func MappingIDHasPrefix(v string) predicate.Event

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

func MappingIDHasSuffix

func MappingIDHasSuffix(v string) predicate.Event

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

func MappingIDIn

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

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

func MappingIDLT

func MappingIDLT(v string) predicate.Event

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

func MappingIDLTE

func MappingIDLTE(v string) predicate.Event

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

func MappingIDNEQ

func MappingIDNEQ(v string) predicate.Event

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

func MappingIDNotIn

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

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

func MetadataIsNil

func MetadataIsNil() predicate.Event

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Event

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func TagsIsNil

func TagsIsNil() predicate.Event

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

func TagsNotNil

func TagsNotNil() predicate.Event

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Event

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Event

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Event

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Event

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Event

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Event

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Event

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Event

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Event

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

func UpdatedBy

func UpdatedBy(v string) predicate.Event

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.Event

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Event

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Event

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Event

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.Event

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Event

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Event

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Event

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Event

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.Event

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Event

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Event

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Event

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

func ByCorrelationID

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

ByCorrelationID orders the results by the correlation_id 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 ByEntitlement

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

ByEntitlement orders the results by entitlement terms.

func ByEntitlementCount

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

ByEntitlementCount orders the results by entitlement count.

func ByEntitlementplan

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

ByEntitlementplan orders the results by entitlementplan terms.

func ByEntitlementplanCount

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

ByEntitlementplanCount orders the results by entitlementplan count.

func ByEntitlementplanfeature

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

ByEntitlementplanfeature orders the results by entitlementplanfeature terms.

func ByEntitlementplanfeatureCount

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

ByEntitlementplanfeatureCount orders the results by entitlementplanfeature count.

func ByEventID

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

ByEventID orders the results by the event_id field.

func ByEventType

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

ByEventType orders the results by the event_type field.

func ByFeature

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

ByFeature orders the results by feature terms.

func ByFeatureCount

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

ByFeatureCount orders the results by feature count.

func ByFile added in v0.3.0

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

ByFile orders the results by file terms.

func ByFileCount added in v0.3.0

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

ByFileCount orders the results by file count.

func ByGroup

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

ByGroup orders the results by group terms.

func ByGroupCount

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

ByGroupCount orders the results by group count.

func ByGroupmembership

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

ByGroupmembership orders the results by groupmembership terms.

func ByGroupmembershipCount

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

ByGroupmembershipCount orders the results by groupmembership count.

func ByHush

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

ByHush orders the results by hush terms.

func ByHushCount

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

ByHushCount orders the results by hush count.

func ByID

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

ByID orders the results by the id field.

func ByIntegration

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

ByIntegration orders the results by integration terms.

func ByIntegrationCount

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

ByIntegrationCount orders the results by integration count.

func ByInvite

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

ByInvite orders the results by invite terms.

func ByInviteCount

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

ByInviteCount orders the results by invite count.

func ByMappingID

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

ByMappingID orders the results by the mapping_id field.

func ByOauth2token

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

ByOauth2token orders the results by oauth2token terms.

func ByOauth2tokenCount

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

ByOauth2tokenCount orders the results by oauth2token count.

func ByOrganization

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

ByOrganization orders the results by organization terms.

func ByOrganizationCount

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

ByOrganizationCount orders the results by organization count.

func ByOrgmembership

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

ByOrgmembership orders the results by orgmembership terms.

func ByOrgmembershipCount

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

ByOrgmembershipCount orders the results by orgmembership count.

func ByPersonalAccessToken

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

ByPersonalAccessToken orders the results by personal_access_token terms.

func ByPersonalAccessTokenCount

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

ByPersonalAccessTokenCount orders the results by personal_access_token count.

func BySubscriber

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

BySubscriber orders the results by subscriber terms.

func BySubscriberCount

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

BySubscriberCount orders the results by subscriber count.

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.

func ByUser

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

ByUser orders the results by user terms.

func ByUserCount

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

ByUserCount orders the results by user count.

func ByWebhook

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

ByWebhook orders the results by webhook terms.

func ByWebhookCount

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

ByWebhookCount orders the results by webhook count.

Jump to

Keyboard shortcuts

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