Help us shape the future of Go! Take the 2026 Go Developer Survey

event

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: AGPL-3.0 Imports: 4 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"
	// FieldWorkspaceID holds the string denoting the workspace_id field in the database.
	FieldWorkspaceID = "workspace_id"
	// FieldSourceID holds the string denoting the source_id field in the database.
	FieldSourceID = "source_id"
	// FieldContactID holds the string denoting the contact_id field in the database.
	FieldContactID = "contact_id"
	// FieldVisitorID holds the string denoting the visitor_id field in the database.
	FieldVisitorID = "visitor_id"
	// FieldSubjectID holds the string denoting the subject_id field in the database.
	FieldSubjectID = "subject_id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// FieldAction holds the string denoting the action field in the database.
	FieldAction = "action"
	// FieldProperties holds the string denoting the properties field in the database.
	FieldProperties = "properties"
	// FieldOccurredAt holds the string denoting the occurred_at field in the database.
	FieldOccurredAt = "occurred_at"
	// FieldBackfill holds the string denoting the backfill field in the database.
	FieldBackfill = "backfill"
	// EdgeWorkspace holds the string denoting the workspace edge name in mutations.
	EdgeWorkspace = "workspace"
	// EdgeContact holds the string denoting the contact edge name in mutations.
	EdgeContact = "contact"
	// Table holds the table name of the event in the database.
	Table = "events"
	// WorkspaceTable is the table that holds the workspace relation/edge.
	WorkspaceTable = "events"
	// WorkspaceInverseTable is the table name for the Workspace entity.
	// It exists in this package in order to avoid circular dependency with the "workspace" package.
	WorkspaceInverseTable = "workspaces"
	// WorkspaceColumn is the table column denoting the workspace relation/edge.
	WorkspaceColumn = "workspace_id"
	// ContactTable is the table that holds the contact relation/edge.
	ContactTable = "events"
	// ContactInverseTable is the table name for the Contact entity.
	// It exists in this package in order to avoid circular dependency with the "contact" package.
	ContactInverseTable = "contacts"
	// ContactColumn is the table column denoting the contact relation/edge.
	ContactColumn = "contact_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// ActionValidator is a validator for the "action" field. It is called by the builders before save.
	ActionValidator func(string) error
	// DefaultBackfill holds the default value on creation for the "backfill" field.
	DefaultBackfill bool
)

Columns holds all SQL columns for event fields.

Functions

func Action

func Action(v string) predicate.Event

Action applies equality check predicate on the "action" field. It's identical to ActionEQ.

func ActionContains

func ActionContains(v string) predicate.Event

ActionContains applies the Contains predicate on the "action" field.

func ActionContainsFold

func ActionContainsFold(v string) predicate.Event

ActionContainsFold applies the ContainsFold predicate on the "action" field.

func ActionEQ

func ActionEQ(v string) predicate.Event

ActionEQ applies the EQ predicate on the "action" field.

func ActionEqualFold

func ActionEqualFold(v string) predicate.Event

ActionEqualFold applies the EqualFold predicate on the "action" field.

func ActionGT

func ActionGT(v string) predicate.Event

ActionGT applies the GT predicate on the "action" field.

func ActionGTE

func ActionGTE(v string) predicate.Event

ActionGTE applies the GTE predicate on the "action" field.

func ActionHasPrefix

func ActionHasPrefix(v string) predicate.Event

ActionHasPrefix applies the HasPrefix predicate on the "action" field.

func ActionHasSuffix

func ActionHasSuffix(v string) predicate.Event

ActionHasSuffix applies the HasSuffix predicate on the "action" field.

func ActionIn

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

ActionIn applies the In predicate on the "action" field.

func ActionLT

func ActionLT(v string) predicate.Event

ActionLT applies the LT predicate on the "action" field.

func ActionLTE

func ActionLTE(v string) predicate.Event

ActionLTE applies the LTE predicate on the "action" field.

func ActionNEQ

func ActionNEQ(v string) predicate.Event

ActionNEQ applies the NEQ predicate on the "action" field.

func ActionNotIn

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

ActionNotIn applies the NotIn predicate on the "action" field.

func And

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

And groups predicates with the AND operator between them.

func Backfill

func Backfill(v bool) predicate.Event

Backfill applies equality check predicate on the "backfill" field. It's identical to BackfillEQ.

func BackfillEQ

func BackfillEQ(v bool) predicate.Event

BackfillEQ applies the EQ predicate on the "backfill" field.

func BackfillNEQ

func BackfillNEQ(v bool) predicate.Event

BackfillNEQ applies the NEQ predicate on the "backfill" field.

func ContactID

func ContactID(v int64) predicate.Event

ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ.

func ContactIDEQ

func ContactIDEQ(v int64) predicate.Event

ContactIDEQ applies the EQ predicate on the "contact_id" field.

func ContactIDIn

func ContactIDIn(vs ...int64) predicate.Event

ContactIDIn applies the In predicate on the "contact_id" field.

func ContactIDIsNil

func ContactIDIsNil() predicate.Event

ContactIDIsNil applies the IsNil predicate on the "contact_id" field.

func ContactIDNEQ

func ContactIDNEQ(v int64) predicate.Event

ContactIDNEQ applies the NEQ predicate on the "contact_id" field.

func ContactIDNotIn

func ContactIDNotIn(vs ...int64) predicate.Event

ContactIDNotIn applies the NotIn predicate on the "contact_id" field.

func ContactIDNotNil

func ContactIDNotNil() predicate.Event

ContactIDNotNil applies the NotNil predicate on the "contact_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 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 Email

func Email(v string) predicate.Event

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Event

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Event

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Event

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Event

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Event

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Event

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Event

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Event

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

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

EmailIn applies the In predicate on the "email" field.

func EmailIsNil

func EmailIsNil() predicate.Event

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Event

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Event

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Event

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

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

EmailNotIn applies the NotIn predicate on the "email" field.

func EmailNotNil

func EmailNotNil() predicate.Event

EmailNotNil applies the NotNil predicate on the "email" field.

func HasContact

func HasContact() predicate.Event

HasContact applies the HasEdge predicate on the "contact" edge.

func HasContactWith

func HasContactWith(preds ...predicate.Contact) predicate.Event

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

func HasWorkspace

func HasWorkspace() predicate.Event

HasWorkspace applies the HasEdge predicate on the "workspace" edge.

func HasWorkspaceWith

func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Event

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

func ID

func ID(id int64) predicate.Event

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func OccurredAt

func OccurredAt(v time.Time) predicate.Event

OccurredAt applies equality check predicate on the "occurred_at" field. It's identical to OccurredAtEQ.

func OccurredAtEQ

func OccurredAtEQ(v time.Time) predicate.Event

OccurredAtEQ applies the EQ predicate on the "occurred_at" field.

func OccurredAtGT

func OccurredAtGT(v time.Time) predicate.Event

OccurredAtGT applies the GT predicate on the "occurred_at" field.

func OccurredAtGTE

func OccurredAtGTE(v time.Time) predicate.Event

OccurredAtGTE applies the GTE predicate on the "occurred_at" field.

func OccurredAtIn

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

OccurredAtIn applies the In predicate on the "occurred_at" field.

func OccurredAtIsNil

func OccurredAtIsNil() predicate.Event

OccurredAtIsNil applies the IsNil predicate on the "occurred_at" field.

func OccurredAtLT

func OccurredAtLT(v time.Time) predicate.Event

OccurredAtLT applies the LT predicate on the "occurred_at" field.

func OccurredAtLTE

func OccurredAtLTE(v time.Time) predicate.Event

OccurredAtLTE applies the LTE predicate on the "occurred_at" field.

func OccurredAtNEQ

func OccurredAtNEQ(v time.Time) predicate.Event

OccurredAtNEQ applies the NEQ predicate on the "occurred_at" field.

func OccurredAtNotIn

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

OccurredAtNotIn applies the NotIn predicate on the "occurred_at" field.

func OccurredAtNotNil

func OccurredAtNotNil() predicate.Event

OccurredAtNotNil applies the NotNil predicate on the "occurred_at" field.

func Or

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

Or groups predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.Event

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.Event

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.Event

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.Event

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.Event

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.Event

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.Event

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.Event

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.Event

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

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

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil

func PhoneIsNil() predicate.Event

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.Event

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.Event

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.Event

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

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

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil

func PhoneNotNil() predicate.Event

PhoneNotNil applies the NotNil predicate on the "phone" field.

func PropertiesIsNil

func PropertiesIsNil() predicate.Event

PropertiesIsNil applies the IsNil predicate on the "properties" field.

func PropertiesNotNil

func PropertiesNotNil() predicate.Event

PropertiesNotNil applies the NotNil predicate on the "properties" field.

func SourceID

func SourceID(v string) predicate.Event

SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.

func SourceIDContains

func SourceIDContains(v string) predicate.Event

SourceIDContains applies the Contains predicate on the "source_id" field.

func SourceIDContainsFold

func SourceIDContainsFold(v string) predicate.Event

SourceIDContainsFold applies the ContainsFold predicate on the "source_id" field.

func SourceIDEQ

func SourceIDEQ(v string) predicate.Event

SourceIDEQ applies the EQ predicate on the "source_id" field.

func SourceIDEqualFold

func SourceIDEqualFold(v string) predicate.Event

SourceIDEqualFold applies the EqualFold predicate on the "source_id" field.

func SourceIDGT

func SourceIDGT(v string) predicate.Event

SourceIDGT applies the GT predicate on the "source_id" field.

func SourceIDGTE

func SourceIDGTE(v string) predicate.Event

SourceIDGTE applies the GTE predicate on the "source_id" field.

func SourceIDHasPrefix

func SourceIDHasPrefix(v string) predicate.Event

SourceIDHasPrefix applies the HasPrefix predicate on the "source_id" field.

func SourceIDHasSuffix

func SourceIDHasSuffix(v string) predicate.Event

SourceIDHasSuffix applies the HasSuffix predicate on the "source_id" field.

func SourceIDIn

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

SourceIDIn applies the In predicate on the "source_id" field.

func SourceIDIsNil

func SourceIDIsNil() predicate.Event

SourceIDIsNil applies the IsNil predicate on the "source_id" field.

func SourceIDLT

func SourceIDLT(v string) predicate.Event

SourceIDLT applies the LT predicate on the "source_id" field.

func SourceIDLTE

func SourceIDLTE(v string) predicate.Event

SourceIDLTE applies the LTE predicate on the "source_id" field.

func SourceIDNEQ

func SourceIDNEQ(v string) predicate.Event

SourceIDNEQ applies the NEQ predicate on the "source_id" field.

func SourceIDNotIn

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

SourceIDNotIn applies the NotIn predicate on the "source_id" field.

func SourceIDNotNil

func SourceIDNotNil() predicate.Event

SourceIDNotNil applies the NotNil predicate on the "source_id" field.

func SubjectID

func SubjectID(v string) predicate.Event

SubjectID applies equality check predicate on the "subject_id" field. It's identical to SubjectIDEQ.

func SubjectIDContains

func SubjectIDContains(v string) predicate.Event

SubjectIDContains applies the Contains predicate on the "subject_id" field.

func SubjectIDContainsFold

func SubjectIDContainsFold(v string) predicate.Event

SubjectIDContainsFold applies the ContainsFold predicate on the "subject_id" field.

func SubjectIDEQ

func SubjectIDEQ(v string) predicate.Event

SubjectIDEQ applies the EQ predicate on the "subject_id" field.

func SubjectIDEqualFold

func SubjectIDEqualFold(v string) predicate.Event

SubjectIDEqualFold applies the EqualFold predicate on the "subject_id" field.

func SubjectIDGT

func SubjectIDGT(v string) predicate.Event

SubjectIDGT applies the GT predicate on the "subject_id" field.

func SubjectIDGTE

func SubjectIDGTE(v string) predicate.Event

SubjectIDGTE applies the GTE predicate on the "subject_id" field.

func SubjectIDHasPrefix

func SubjectIDHasPrefix(v string) predicate.Event

SubjectIDHasPrefix applies the HasPrefix predicate on the "subject_id" field.

func SubjectIDHasSuffix

func SubjectIDHasSuffix(v string) predicate.Event

SubjectIDHasSuffix applies the HasSuffix predicate on the "subject_id" field.

func SubjectIDIn

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

SubjectIDIn applies the In predicate on the "subject_id" field.

func SubjectIDIsNil

func SubjectIDIsNil() predicate.Event

SubjectIDIsNil applies the IsNil predicate on the "subject_id" field.

func SubjectIDLT

func SubjectIDLT(v string) predicate.Event

SubjectIDLT applies the LT predicate on the "subject_id" field.

func SubjectIDLTE

func SubjectIDLTE(v string) predicate.Event

SubjectIDLTE applies the LTE predicate on the "subject_id" field.

func SubjectIDNEQ

func SubjectIDNEQ(v string) predicate.Event

SubjectIDNEQ applies the NEQ predicate on the "subject_id" field.

func SubjectIDNotIn

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

SubjectIDNotIn applies the NotIn predicate on the "subject_id" field.

func SubjectIDNotNil

func SubjectIDNotNil() predicate.Event

SubjectIDNotNil applies the NotNil predicate on the "subject_id" 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 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 ValidColumn

func ValidColumn(column string) bool

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

func VisitorID

func VisitorID(v string) predicate.Event

VisitorID applies equality check predicate on the "visitor_id" field. It's identical to VisitorIDEQ.

func VisitorIDContains

func VisitorIDContains(v string) predicate.Event

VisitorIDContains applies the Contains predicate on the "visitor_id" field.

func VisitorIDContainsFold

func VisitorIDContainsFold(v string) predicate.Event

VisitorIDContainsFold applies the ContainsFold predicate on the "visitor_id" field.

func VisitorIDEQ

func VisitorIDEQ(v string) predicate.Event

VisitorIDEQ applies the EQ predicate on the "visitor_id" field.

func VisitorIDEqualFold

func VisitorIDEqualFold(v string) predicate.Event

VisitorIDEqualFold applies the EqualFold predicate on the "visitor_id" field.

func VisitorIDGT

func VisitorIDGT(v string) predicate.Event

VisitorIDGT applies the GT predicate on the "visitor_id" field.

func VisitorIDGTE

func VisitorIDGTE(v string) predicate.Event

VisitorIDGTE applies the GTE predicate on the "visitor_id" field.

func VisitorIDHasPrefix

func VisitorIDHasPrefix(v string) predicate.Event

VisitorIDHasPrefix applies the HasPrefix predicate on the "visitor_id" field.

func VisitorIDHasSuffix

func VisitorIDHasSuffix(v string) predicate.Event

VisitorIDHasSuffix applies the HasSuffix predicate on the "visitor_id" field.

func VisitorIDIn

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

VisitorIDIn applies the In predicate on the "visitor_id" field.

func VisitorIDIsNil

func VisitorIDIsNil() predicate.Event

VisitorIDIsNil applies the IsNil predicate on the "visitor_id" field.

func VisitorIDLT

func VisitorIDLT(v string) predicate.Event

VisitorIDLT applies the LT predicate on the "visitor_id" field.

func VisitorIDLTE

func VisitorIDLTE(v string) predicate.Event

VisitorIDLTE applies the LTE predicate on the "visitor_id" field.

func VisitorIDNEQ

func VisitorIDNEQ(v string) predicate.Event

VisitorIDNEQ applies the NEQ predicate on the "visitor_id" field.

func VisitorIDNotIn

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

VisitorIDNotIn applies the NotIn predicate on the "visitor_id" field.

func VisitorIDNotNil

func VisitorIDNotNil() predicate.Event

VisitorIDNotNil applies the NotNil predicate on the "visitor_id" field.

func WorkspaceID

func WorkspaceID(v int64) predicate.Event

WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.

func WorkspaceIDEQ

func WorkspaceIDEQ(v int64) predicate.Event

WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.

func WorkspaceIDIn

func WorkspaceIDIn(vs ...int64) predicate.Event

WorkspaceIDIn applies the In predicate on the "workspace_id" field.

func WorkspaceIDNEQ

func WorkspaceIDNEQ(v int64) predicate.Event

WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.

func WorkspaceIDNotIn

func WorkspaceIDNotIn(vs ...int64) predicate.Event

WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Event queries.

func ByAction

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

ByAction orders the results by the action field.

func ByBackfill

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

ByBackfill orders the results by the backfill field.

func ByContactField

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

ByContactField orders the results by contact field.

func ByContactID

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

ByContactID orders the results by the contact_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByID

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

ByID orders the results by the id field.

func ByOccurredAt

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

ByOccurredAt orders the results by the occurred_at field.

func ByPhone

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

ByPhone orders the results by the phone field.

func BySourceID

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

BySourceID orders the results by the source_id field.

func BySubjectID

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

BySubjectID orders the results by the subject_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVisitorID

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

ByVisitorID orders the results by the visitor_id field.

func ByWorkspaceField

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

ByWorkspaceField orders the results by workspace field.

func ByWorkspaceID

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

ByWorkspaceID orders the results by the workspace_id field.

Jump to

Keyboard shortcuts

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