Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Visitor) predicate.Visitor
- func ContactID(v int64) predicate.Visitor
- func ContactIDEQ(v int64) predicate.Visitor
- func ContactIDIn(vs ...int64) predicate.Visitor
- func ContactIDIsNil() predicate.Visitor
- func ContactIDNEQ(v int64) predicate.Visitor
- func ContactIDNotIn(vs ...int64) predicate.Visitor
- func ContactIDNotNil() predicate.Visitor
- func CreatedAt(v time.Time) predicate.Visitor
- func CreatedAtEQ(v time.Time) predicate.Visitor
- func CreatedAtGT(v time.Time) predicate.Visitor
- func CreatedAtGTE(v time.Time) predicate.Visitor
- func CreatedAtIn(vs ...time.Time) predicate.Visitor
- func CreatedAtLT(v time.Time) predicate.Visitor
- func CreatedAtLTE(v time.Time) predicate.Visitor
- func CreatedAtNEQ(v time.Time) predicate.Visitor
- func CreatedAtNotIn(vs ...time.Time) predicate.Visitor
- func HasContact() predicate.Visitor
- func HasContactWith(preds ...predicate.Contact) predicate.Visitor
- func HasWorkspace() predicate.Visitor
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Visitor
- func ID(id int64) predicate.Visitor
- func IDEQ(id int64) predicate.Visitor
- func IDGT(id int64) predicate.Visitor
- func IDGTE(id int64) predicate.Visitor
- func IDIn(ids ...int64) predicate.Visitor
- func IDLT(id int64) predicate.Visitor
- func IDLTE(id int64) predicate.Visitor
- func IDNEQ(id int64) predicate.Visitor
- func IDNotIn(ids ...int64) predicate.Visitor
- func LastSeenAt(v time.Time) predicate.Visitor
- func LastSeenAtEQ(v time.Time) predicate.Visitor
- func LastSeenAtGT(v time.Time) predicate.Visitor
- func LastSeenAtGTE(v time.Time) predicate.Visitor
- func LastSeenAtIn(vs ...time.Time) predicate.Visitor
- func LastSeenAtLT(v time.Time) predicate.Visitor
- func LastSeenAtLTE(v time.Time) predicate.Visitor
- func LastSeenAtNEQ(v time.Time) predicate.Visitor
- func LastSeenAtNotIn(vs ...time.Time) predicate.Visitor
- func Not(p predicate.Visitor) predicate.Visitor
- func Or(predicates ...predicate.Visitor) predicate.Visitor
- func UpdatedAt(v time.Time) predicate.Visitor
- func UpdatedAtEQ(v time.Time) predicate.Visitor
- func UpdatedAtGT(v time.Time) predicate.Visitor
- func UpdatedAtGTE(v time.Time) predicate.Visitor
- func UpdatedAtIn(vs ...time.Time) predicate.Visitor
- func UpdatedAtLT(v time.Time) predicate.Visitor
- func UpdatedAtLTE(v time.Time) predicate.Visitor
- func UpdatedAtNEQ(v time.Time) predicate.Visitor
- func UpdatedAtNotIn(vs ...time.Time) predicate.Visitor
- func ValidColumn(column string) bool
- func VisitorID(v string) predicate.Visitor
- func VisitorIDContains(v string) predicate.Visitor
- func VisitorIDContainsFold(v string) predicate.Visitor
- func VisitorIDEQ(v string) predicate.Visitor
- func VisitorIDEqualFold(v string) predicate.Visitor
- func VisitorIDGT(v string) predicate.Visitor
- func VisitorIDGTE(v string) predicate.Visitor
- func VisitorIDHasPrefix(v string) predicate.Visitor
- func VisitorIDHasSuffix(v string) predicate.Visitor
- func VisitorIDIn(vs ...string) predicate.Visitor
- func VisitorIDLT(v string) predicate.Visitor
- func VisitorIDLTE(v string) predicate.Visitor
- func VisitorIDNEQ(v string) predicate.Visitor
- func VisitorIDNotIn(vs ...string) predicate.Visitor
- func WorkspaceID(v int64) predicate.Visitor
- func WorkspaceIDEQ(v int64) predicate.Visitor
- func WorkspaceIDIn(vs ...int64) predicate.Visitor
- func WorkspaceIDNEQ(v int64) predicate.Visitor
- func WorkspaceIDNotIn(vs ...int64) predicate.Visitor
- type OrderOption
- func ByContactField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByContactID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVisitorID(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldVisitorID, FieldContactID, FieldLastSeenAt, }
Columns holds all SQL columns for visitor fields.
Functions ¶
func ContactID ¶
ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ.
func ContactIDEQ ¶
ContactIDEQ applies the EQ predicate on the "contact_id" field.
func ContactIDIn ¶
ContactIDIn applies the In predicate on the "contact_id" field.
func ContactIDIsNil ¶
ContactIDIsNil applies the IsNil predicate on the "contact_id" field.
func ContactIDNEQ ¶
ContactIDNEQ applies the NEQ predicate on the "contact_id" field.
func ContactIDNotIn ¶
ContactIDNotIn applies the NotIn predicate on the "contact_id" field.
func ContactIDNotNil ¶
ContactIDNotNil applies the NotNil predicate on the "contact_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasContact ¶
HasContact applies the HasEdge predicate on the "contact" edge.
func HasContactWith ¶
HasContactWith applies the HasEdge predicate on the "contact" edge with a given conditions (other predicates).
func HasWorkspace ¶
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func LastSeenAt ¶
LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.
func LastSeenAtEQ ¶
LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.
func LastSeenAtGT ¶
LastSeenAtGT applies the GT predicate on the "last_seen_at" field.
func LastSeenAtGTE ¶
LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.
func LastSeenAtIn ¶
LastSeenAtIn applies the In predicate on the "last_seen_at" field.
func LastSeenAtLT ¶
LastSeenAtLT applies the LT predicate on the "last_seen_at" field.
func LastSeenAtLTE ¶
LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.
func LastSeenAtNEQ ¶
LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.
func LastSeenAtNotIn ¶
LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VisitorID ¶
VisitorID applies equality check predicate on the "visitor_id" field. It's identical to VisitorIDEQ.
func VisitorIDContains ¶
VisitorIDContains applies the Contains predicate on the "visitor_id" field.
func VisitorIDContainsFold ¶
VisitorIDContainsFold applies the ContainsFold predicate on the "visitor_id" field.
func VisitorIDEQ ¶
VisitorIDEQ applies the EQ predicate on the "visitor_id" field.
func VisitorIDEqualFold ¶
VisitorIDEqualFold applies the EqualFold predicate on the "visitor_id" field.
func VisitorIDGT ¶
VisitorIDGT applies the GT predicate on the "visitor_id" field.
func VisitorIDGTE ¶
VisitorIDGTE applies the GTE predicate on the "visitor_id" field.
func VisitorIDHasPrefix ¶
VisitorIDHasPrefix applies the HasPrefix predicate on the "visitor_id" field.
func VisitorIDHasSuffix ¶
VisitorIDHasSuffix applies the HasSuffix predicate on the "visitor_id" field.
func VisitorIDIn ¶
VisitorIDIn applies the In predicate on the "visitor_id" field.
func VisitorIDLT ¶
VisitorIDLT applies the LT predicate on the "visitor_id" field.
func VisitorIDLTE ¶
VisitorIDLTE applies the LTE predicate on the "visitor_id" field.
func VisitorIDNEQ ¶
VisitorIDNEQ applies the NEQ predicate on the "visitor_id" field.
func VisitorIDNotIn ¶
VisitorIDNotIn applies the NotIn predicate on the "visitor_id" field.
func WorkspaceID ¶
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
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.