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

visitor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the visitor type in the database.
	Label = "visitor"
	// 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"
	// FieldVisitorID holds the string denoting the visitor_id field in the database.
	FieldVisitorID = "visitor_id"
	// FieldContactID holds the string denoting the contact_id field in the database.
	FieldContactID = "contact_id"
	// FieldLastSeenAt holds the string denoting the last_seen_at field in the database.
	FieldLastSeenAt = "last_seen_at"
	// 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 visitor in the database.
	Table = "visitors"
	// WorkspaceTable is the table that holds the workspace relation/edge.
	WorkspaceTable = "visitors"
	// 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 = "visitors"
	// 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
	// VisitorIDValidator is a validator for the "visitor_id" field. It is called by the builders before save.
	VisitorIDValidator func(string) error
	// DefaultLastSeenAt holds the default value on creation for the "last_seen_at" field.
	DefaultLastSeenAt func() time.Time
)

Columns holds all SQL columns for visitor fields.

Functions

func And

func And(predicates ...predicate.Visitor) predicate.Visitor

And groups predicates with the AND operator between them.

func ContactID

func ContactID(v int64) predicate.Visitor

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

func ContactIDEQ

func ContactIDEQ(v int64) predicate.Visitor

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

func ContactIDIn

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

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

func ContactIDIsNil

func ContactIDIsNil() predicate.Visitor

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

func ContactIDNEQ

func ContactIDNEQ(v int64) predicate.Visitor

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

func ContactIDNotIn

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

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

func ContactIDNotNil

func ContactIDNotNil() predicate.Visitor

ContactIDNotNil applies the NotNil predicate on the "contact_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Visitor

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Visitor

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Visitor

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Visitor

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Visitor

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Visitor

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Visitor

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

func CreatedAtNotIn

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

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

func HasContact

func HasContact() predicate.Visitor

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

func HasContactWith

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

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

func HasWorkspace

func HasWorkspace() predicate.Visitor

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

func HasWorkspaceWith

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

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

func ID

func ID(id int64) predicate.Visitor

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Visitor

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Visitor

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Visitor

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Visitor

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Visitor

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Visitor

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastSeenAt

func LastSeenAt(v time.Time) predicate.Visitor

LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.

func LastSeenAtEQ

func LastSeenAtEQ(v time.Time) predicate.Visitor

LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.

func LastSeenAtGT

func LastSeenAtGT(v time.Time) predicate.Visitor

LastSeenAtGT applies the GT predicate on the "last_seen_at" field.

func LastSeenAtGTE

func LastSeenAtGTE(v time.Time) predicate.Visitor

LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.

func LastSeenAtIn

func LastSeenAtIn(vs ...time.Time) predicate.Visitor

LastSeenAtIn applies the In predicate on the "last_seen_at" field.

func LastSeenAtLT

func LastSeenAtLT(v time.Time) predicate.Visitor

LastSeenAtLT applies the LT predicate on the "last_seen_at" field.

func LastSeenAtLTE

func LastSeenAtLTE(v time.Time) predicate.Visitor

LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.

func LastSeenAtNEQ

func LastSeenAtNEQ(v time.Time) predicate.Visitor

LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.

func LastSeenAtNotIn

func LastSeenAtNotIn(vs ...time.Time) predicate.Visitor

LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Visitor) predicate.Visitor

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Visitor

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Visitor

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Visitor

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Visitor

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Visitor

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Visitor

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Visitor

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

func UpdatedAtNotIn

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

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

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

func VisitorIDContains

func VisitorIDContains(v string) predicate.Visitor

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

func VisitorIDContainsFold

func VisitorIDContainsFold(v string) predicate.Visitor

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

func VisitorIDEQ

func VisitorIDEQ(v string) predicate.Visitor

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

func VisitorIDEqualFold

func VisitorIDEqualFold(v string) predicate.Visitor

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

func VisitorIDGT

func VisitorIDGT(v string) predicate.Visitor

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

func VisitorIDGTE

func VisitorIDGTE(v string) predicate.Visitor

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

func VisitorIDHasPrefix

func VisitorIDHasPrefix(v string) predicate.Visitor

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

func VisitorIDHasSuffix

func VisitorIDHasSuffix(v string) predicate.Visitor

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

func VisitorIDIn

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

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

func VisitorIDLT

func VisitorIDLT(v string) predicate.Visitor

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

func VisitorIDLTE

func VisitorIDLTE(v string) predicate.Visitor

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

func VisitorIDNEQ

func VisitorIDNEQ(v string) predicate.Visitor

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

func VisitorIDNotIn

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

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

func WorkspaceID

func WorkspaceID(v int64) predicate.Visitor

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

func WorkspaceIDEQ

func WorkspaceIDEQ(v int64) predicate.Visitor

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

func WorkspaceIDIn

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

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

func WorkspaceIDNEQ

func WorkspaceIDNEQ(v int64) predicate.Visitor

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

func WorkspaceIDNotIn

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

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

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 ByID

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

ByID orders the results by the id field.

func ByLastSeenAt

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

ByLastSeenAt orders the results by the last_seen_at 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