Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Visit) predicate.Visit
- func HasSite() predicate.Visit
- func HasSiteWith(preds ...predicate.Site) predicate.Visit
- func ID(id int) predicate.Visit
- func IDEQ(id int) predicate.Visit
- func IDGT(id int) predicate.Visit
- func IDGTE(id int) predicate.Visit
- func IDIn(ids ...int) predicate.Visit
- func IDLT(id int) predicate.Visit
- func IDLTE(id int) predicate.Visit
- func IDNEQ(id int) predicate.Visit
- func IDNotIn(ids ...int) predicate.Visit
- func IP(v string) predicate.Visit
- func IPContains(v string) predicate.Visit
- func IPContainsFold(v string) predicate.Visit
- func IPEQ(v string) predicate.Visit
- func IPEqualFold(v string) predicate.Visit
- func IPGT(v string) predicate.Visit
- func IPGTE(v string) predicate.Visit
- func IPHasPrefix(v string) predicate.Visit
- func IPHasSuffix(v string) predicate.Visit
- func IPIn(vs ...string) predicate.Visit
- func IPLT(v string) predicate.Visit
- func IPLTE(v string) predicate.Visit
- func IPNEQ(v string) predicate.Visit
- func IPNotIn(vs ...string) predicate.Visit
- func Not(p predicate.Visit) predicate.Visit
- func Or(predicates ...predicate.Visit) predicate.Visit
- func Path(v string) predicate.Visit
- func PathContains(v string) predicate.Visit
- func PathContainsFold(v string) predicate.Visit
- func PathEQ(v string) predicate.Visit
- func PathEqualFold(v string) predicate.Visit
- func PathGT(v string) predicate.Visit
- func PathGTE(v string) predicate.Visit
- func PathHasPrefix(v string) predicate.Visit
- func PathHasSuffix(v string) predicate.Visit
- func PathIn(vs ...string) predicate.Visit
- func PathLT(v string) predicate.Visit
- func PathLTE(v string) predicate.Visit
- func PathNEQ(v string) predicate.Visit
- func PathNotIn(vs ...string) predicate.Visit
- func Referrer(v string) predicate.Visit
- func ReferrerContains(v string) predicate.Visit
- func ReferrerContainsFold(v string) predicate.Visit
- func ReferrerEQ(v string) predicate.Visit
- func ReferrerEqualFold(v string) predicate.Visit
- func ReferrerGT(v string) predicate.Visit
- func ReferrerGTE(v string) predicate.Visit
- func ReferrerHasPrefix(v string) predicate.Visit
- func ReferrerHasSuffix(v string) predicate.Visit
- func ReferrerIn(vs ...string) predicate.Visit
- func ReferrerLT(v string) predicate.Visit
- func ReferrerLTE(v string) predicate.Visit
- func ReferrerNEQ(v string) predicate.Visit
- func ReferrerNotIn(vs ...string) predicate.Visit
- func Timestamp(v time.Time) predicate.Visit
- func TimestampEQ(v time.Time) predicate.Visit
- func TimestampGT(v time.Time) predicate.Visit
- func TimestampGTE(v time.Time) predicate.Visit
- func TimestampIn(vs ...time.Time) predicate.Visit
- func TimestampLT(v time.Time) predicate.Visit
- func TimestampLTE(v time.Time) predicate.Visit
- func TimestampNEQ(v time.Time) predicate.Visit
- func TimestampNotIn(vs ...time.Time) predicate.Visit
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the visit type in the database. Label = "visit" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldReferrer holds the string denoting the referrer field in the database. FieldReferrer = "referrer" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldIP holds the string denoting the ip field in the database. FieldIP = "ip" // EdgeSite holds the string denoting the site edge name in mutations. EdgeSite = "site" // Table holds the table name of the visit in the database. Table = "visits" // SiteTable is the table that holds the site relation/edge. SiteTable = "visits" // SiteInverseTable is the table name for the Site entity. // It exists in this package in order to avoid circular dependency with the "site" package. SiteInverseTable = "sites" // SiteColumn is the table column denoting the site relation/edge. SiteColumn = "site_visits" )
Variables ¶
var Columns = []string{ FieldID, FieldPath, FieldReferrer, FieldTimestamp, FieldIP, }
Columns holds all SQL columns for visit fields.
var ForeignKeys = []string{
"site_visits",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "visits" table and are not defined as standalone fields in the schema.
Functions ¶
func HasSiteWith ¶
HasSiteWith applies the HasEdge predicate on the "site" edge with a given conditions (other predicates).
func IPContains ¶
IPContains applies the Contains predicate on the "ip" field.
func IPContainsFold ¶
IPContainsFold applies the ContainsFold predicate on the "ip" field.
func IPEqualFold ¶
IPEqualFold applies the EqualFold predicate on the "ip" field.
func IPHasPrefix ¶
IPHasPrefix applies the HasPrefix predicate on the "ip" field.
func IPHasSuffix ¶
IPHasSuffix applies the HasSuffix predicate on the "ip" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func Referrer ¶
Referrer applies equality check predicate on the "referrer" field. It's identical to ReferrerEQ.
func ReferrerContains ¶
ReferrerContains applies the Contains predicate on the "referrer" field.
func ReferrerContainsFold ¶
ReferrerContainsFold applies the ContainsFold predicate on the "referrer" field.
func ReferrerEQ ¶
ReferrerEQ applies the EQ predicate on the "referrer" field.
func ReferrerEqualFold ¶
ReferrerEqualFold applies the EqualFold predicate on the "referrer" field.
func ReferrerGT ¶
ReferrerGT applies the GT predicate on the "referrer" field.
func ReferrerGTE ¶
ReferrerGTE applies the GTE predicate on the "referrer" field.
func ReferrerHasPrefix ¶
ReferrerHasPrefix applies the HasPrefix predicate on the "referrer" field.
func ReferrerHasSuffix ¶
ReferrerHasSuffix applies the HasSuffix predicate on the "referrer" field.
func ReferrerIn ¶
ReferrerIn applies the In predicate on the "referrer" field.
func ReferrerLT ¶
ReferrerLT applies the LT predicate on the "referrer" field.
func ReferrerLTE ¶
ReferrerLTE applies the LTE predicate on the "referrer" field.
func ReferrerNEQ ¶
ReferrerNEQ applies the NEQ predicate on the "referrer" field.
func ReferrerNotIn ¶
ReferrerNotIn applies the NotIn predicate on the "referrer" field.
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.