Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.UserSession
- func ActiveEQ(v bool) predicate.UserSession
- func ActiveNEQ(v bool) predicate.UserSession
- func And(predicates ...predicate.UserSession) predicate.UserSession
- func CreateTime(v time.Time) predicate.UserSession
- func CreateTimeEQ(v time.Time) predicate.UserSession
- func CreateTimeGT(v time.Time) predicate.UserSession
- func CreateTimeGTE(v time.Time) predicate.UserSession
- func CreateTimeIn(vs ...time.Time) predicate.UserSession
- func CreateTimeLT(v time.Time) predicate.UserSession
- func CreateTimeLTE(v time.Time) predicate.UserSession
- func CreateTimeNEQ(v time.Time) predicate.UserSession
- func CreateTimeNotIn(vs ...time.Time) predicate.UserSession
- func HasUser() predicate.UserSession
- func HasUserWith(preds ...predicate.User) predicate.UserSession
- func ID(id int) predicate.UserSession
- func IDEQ(id int) predicate.UserSession
- func IDGT(id int) predicate.UserSession
- func IDGTE(id int) predicate.UserSession
- func IDIn(ids ...int) predicate.UserSession
- func IDLT(id int) predicate.UserSession
- func IDLTE(id int) predicate.UserSession
- func IDNEQ(id int) predicate.UserSession
- func IDNotIn(ids ...int) predicate.UserSession
- func IP(v string) predicate.UserSession
- func IPContains(v string) predicate.UserSession
- func IPContainsFold(v string) predicate.UserSession
- func IPEQ(v string) predicate.UserSession
- func IPEqualFold(v string) predicate.UserSession
- func IPGT(v string) predicate.UserSession
- func IPGTE(v string) predicate.UserSession
- func IPHasPrefix(v string) predicate.UserSession
- func IPHasSuffix(v string) predicate.UserSession
- func IPIn(vs ...string) predicate.UserSession
- func IPLT(v string) predicate.UserSession
- func IPLTE(v string) predicate.UserSession
- func IPNEQ(v string) predicate.UserSession
- func IPNotIn(vs ...string) predicate.UserSession
- func LastActivity(v time.Time) predicate.UserSession
- func LastActivityEQ(v time.Time) predicate.UserSession
- func LastActivityGT(v time.Time) predicate.UserSession
- func LastActivityGTE(v time.Time) predicate.UserSession
- func LastActivityIn(vs ...time.Time) predicate.UserSession
- func LastActivityLT(v time.Time) predicate.UserSession
- func LastActivityLTE(v time.Time) predicate.UserSession
- func LastActivityNEQ(v time.Time) predicate.UserSession
- func LastActivityNotIn(vs ...time.Time) predicate.UserSession
- func MetaIsNil() predicate.UserSession
- func MetaNotNil() predicate.UserSession
- func Not(p predicate.UserSession) predicate.UserSession
- func Or(predicates ...predicate.UserSession) predicate.UserSession
- func Sid(v string) predicate.UserSession
- func SidContains(v string) predicate.UserSession
- func SidContainsFold(v string) predicate.UserSession
- func SidEQ(v string) predicate.UserSession
- func SidEqualFold(v string) predicate.UserSession
- func SidGT(v string) predicate.UserSession
- func SidGTE(v string) predicate.UserSession
- func SidHasPrefix(v string) predicate.UserSession
- func SidHasSuffix(v string) predicate.UserSession
- func SidIn(vs ...string) predicate.UserSession
- func SidLT(v string) predicate.UserSession
- func SidLTE(v string) predicate.UserSession
- func SidNEQ(v string) predicate.UserSession
- func SidNotIn(vs ...string) predicate.UserSession
- func UpdateTime(v time.Time) predicate.UserSession
- func UpdateTimeEQ(v time.Time) predicate.UserSession
- func UpdateTimeGT(v time.Time) predicate.UserSession
- func UpdateTimeGTE(v time.Time) predicate.UserSession
- func UpdateTimeIn(vs ...time.Time) predicate.UserSession
- func UpdateTimeLT(v time.Time) predicate.UserSession
- func UpdateTimeLTE(v time.Time) predicate.UserSession
- func UpdateTimeNEQ(v time.Time) predicate.UserSession
- func UpdateTimeNotIn(vs ...time.Time) predicate.UserSession
- func UserAgent(v string) predicate.UserSession
- func UserAgentContains(v string) predicate.UserSession
- func UserAgentContainsFold(v string) predicate.UserSession
- func UserAgentEQ(v string) predicate.UserSession
- func UserAgentEqualFold(v string) predicate.UserSession
- func UserAgentGT(v string) predicate.UserSession
- func UserAgentGTE(v string) predicate.UserSession
- func UserAgentHasPrefix(v string) predicate.UserSession
- func UserAgentHasSuffix(v string) predicate.UserSession
- func UserAgentIn(vs ...string) predicate.UserSession
- func UserAgentLT(v string) predicate.UserSession
- func UserAgentLTE(v string) predicate.UserSession
- func UserAgentNEQ(v string) predicate.UserSession
- func UserAgentNotIn(vs ...string) predicate.UserSession
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the usersession type in the database. Label = "user_session" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldSid holds the string denoting the sid field in the database. FieldSid = "sid" // FieldIP holds the string denoting the ip field in the database. FieldIP = "ip" // FieldUserAgent holds the string denoting the user_agent field in the database. FieldUserAgent = "user_agent" // FieldLastActivity holds the string denoting the last_activity field in the database. FieldLastActivity = "last_activity" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the usersession in the database. Table = "user_sessions" // UserTable is the table that holds the user relation/edge. UserTable = "user_sessions" // 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" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_sessions" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // SidValidator is a validator for the "sid" field. It is called by the builders before save. SidValidator func(string) error // DefaultLastActivity holds the default value on creation for the "last_activity" field. DefaultLastActivity func() time.Time // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldSid, FieldIP, FieldUserAgent, FieldLastActivity, FieldActive, FieldMeta, }
Columns holds all SQL columns for usersession fields.
var ForeignKeys = []string{
"user_sessions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "user_sessions" table and are not defined as standalone fields in the schema.
Functions ¶
func Active ¶
func Active(v bool) predicate.UserSession
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func ActiveEQ ¶
func ActiveEQ(v bool) predicate.UserSession
ActiveEQ applies the EQ predicate on the "active" field.
func ActiveNEQ ¶
func ActiveNEQ(v bool) predicate.UserSession
ActiveNEQ applies the NEQ predicate on the "active" field.
func And ¶
func And(predicates ...predicate.UserSession) predicate.UserSession
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.UserSession
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.UserSession
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.UserSession
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.UserSession
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.UserSession
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.UserSession
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.UserSession
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.UserSession
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.UserSession
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasUser ¶
func HasUser() predicate.UserSession
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserSession
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserSession
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserSession
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserSession
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserSession
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserSession
IDNotIn applies the NotIn predicate on the ID field.
func IP ¶
func IP(v string) predicate.UserSession
IP applies equality check predicate on the "ip" field. It's identical to IPEQ.
func IPContains ¶
func IPContains(v string) predicate.UserSession
IPContains applies the Contains predicate on the "ip" field.
func IPContainsFold ¶
func IPContainsFold(v string) predicate.UserSession
IPContainsFold applies the ContainsFold predicate on the "ip" field.
func IPEQ ¶
func IPEQ(v string) predicate.UserSession
IPEQ applies the EQ predicate on the "ip" field.
func IPEqualFold ¶
func IPEqualFold(v string) predicate.UserSession
IPEqualFold applies the EqualFold predicate on the "ip" field.
func IPGT ¶
func IPGT(v string) predicate.UserSession
IPGT applies the GT predicate on the "ip" field.
func IPGTE ¶
func IPGTE(v string) predicate.UserSession
IPGTE applies the GTE predicate on the "ip" field.
func IPHasPrefix ¶
func IPHasPrefix(v string) predicate.UserSession
IPHasPrefix applies the HasPrefix predicate on the "ip" field.
func IPHasSuffix ¶
func IPHasSuffix(v string) predicate.UserSession
IPHasSuffix applies the HasSuffix predicate on the "ip" field.
func IPIn ¶
func IPIn(vs ...string) predicate.UserSession
IPIn applies the In predicate on the "ip" field.
func IPLT ¶
func IPLT(v string) predicate.UserSession
IPLT applies the LT predicate on the "ip" field.
func IPLTE ¶
func IPLTE(v string) predicate.UserSession
IPLTE applies the LTE predicate on the "ip" field.
func IPNEQ ¶
func IPNEQ(v string) predicate.UserSession
IPNEQ applies the NEQ predicate on the "ip" field.
func IPNotIn ¶
func IPNotIn(vs ...string) predicate.UserSession
IPNotIn applies the NotIn predicate on the "ip" field.
func LastActivity ¶
func LastActivity(v time.Time) predicate.UserSession
LastActivity applies equality check predicate on the "last_activity" field. It's identical to LastActivityEQ.
func LastActivityEQ ¶
func LastActivityEQ(v time.Time) predicate.UserSession
LastActivityEQ applies the EQ predicate on the "last_activity" field.
func LastActivityGT ¶
func LastActivityGT(v time.Time) predicate.UserSession
LastActivityGT applies the GT predicate on the "last_activity" field.
func LastActivityGTE ¶
func LastActivityGTE(v time.Time) predicate.UserSession
LastActivityGTE applies the GTE predicate on the "last_activity" field.
func LastActivityIn ¶
func LastActivityIn(vs ...time.Time) predicate.UserSession
LastActivityIn applies the In predicate on the "last_activity" field.
func LastActivityLT ¶
func LastActivityLT(v time.Time) predicate.UserSession
LastActivityLT applies the LT predicate on the "last_activity" field.
func LastActivityLTE ¶
func LastActivityLTE(v time.Time) predicate.UserSession
LastActivityLTE applies the LTE predicate on the "last_activity" field.
func LastActivityNEQ ¶
func LastActivityNEQ(v time.Time) predicate.UserSession
LastActivityNEQ applies the NEQ predicate on the "last_activity" field.
func LastActivityNotIn ¶
func LastActivityNotIn(vs ...time.Time) predicate.UserSession
LastActivityNotIn applies the NotIn predicate on the "last_activity" field.
func MetaIsNil ¶
func MetaIsNil() predicate.UserSession
MetaIsNil applies the IsNil predicate on the "meta" field.
func MetaNotNil ¶
func MetaNotNil() predicate.UserSession
MetaNotNil applies the NotNil predicate on the "meta" field.
func Not ¶
func Not(p predicate.UserSession) predicate.UserSession
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserSession) predicate.UserSession
Or groups predicates with the OR operator between them.
func Sid ¶
func Sid(v string) predicate.UserSession
Sid applies equality check predicate on the "sid" field. It's identical to SidEQ.
func SidContains ¶
func SidContains(v string) predicate.UserSession
SidContains applies the Contains predicate on the "sid" field.
func SidContainsFold ¶
func SidContainsFold(v string) predicate.UserSession
SidContainsFold applies the ContainsFold predicate on the "sid" field.
func SidEQ ¶
func SidEQ(v string) predicate.UserSession
SidEQ applies the EQ predicate on the "sid" field.
func SidEqualFold ¶
func SidEqualFold(v string) predicate.UserSession
SidEqualFold applies the EqualFold predicate on the "sid" field.
func SidGT ¶
func SidGT(v string) predicate.UserSession
SidGT applies the GT predicate on the "sid" field.
func SidGTE ¶
func SidGTE(v string) predicate.UserSession
SidGTE applies the GTE predicate on the "sid" field.
func SidHasPrefix ¶
func SidHasPrefix(v string) predicate.UserSession
SidHasPrefix applies the HasPrefix predicate on the "sid" field.
func SidHasSuffix ¶
func SidHasSuffix(v string) predicate.UserSession
SidHasSuffix applies the HasSuffix predicate on the "sid" field.
func SidIn ¶
func SidIn(vs ...string) predicate.UserSession
SidIn applies the In predicate on the "sid" field.
func SidLT ¶
func SidLT(v string) predicate.UserSession
SidLT applies the LT predicate on the "sid" field.
func SidLTE ¶
func SidLTE(v string) predicate.UserSession
SidLTE applies the LTE predicate on the "sid" field.
func SidNEQ ¶
func SidNEQ(v string) predicate.UserSession
SidNEQ applies the NEQ predicate on the "sid" field.
func SidNotIn ¶
func SidNotIn(vs ...string) predicate.UserSession
SidNotIn applies the NotIn predicate on the "sid" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.UserSession
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.UserSession
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.UserSession
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.UserSession
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.UserSession
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.UserSession
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.UserSession
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.UserSession
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.UserSession
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UserAgent ¶
func UserAgent(v string) predicate.UserSession
UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.
func UserAgentContains ¶
func UserAgentContains(v string) predicate.UserSession
UserAgentContains applies the Contains predicate on the "user_agent" field.
func UserAgentContainsFold ¶
func UserAgentContainsFold(v string) predicate.UserSession
UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.
func UserAgentEQ ¶
func UserAgentEQ(v string) predicate.UserSession
UserAgentEQ applies the EQ predicate on the "user_agent" field.
func UserAgentEqualFold ¶
func UserAgentEqualFold(v string) predicate.UserSession
UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.
func UserAgentGT ¶
func UserAgentGT(v string) predicate.UserSession
UserAgentGT applies the GT predicate on the "user_agent" field.
func UserAgentGTE ¶
func UserAgentGTE(v string) predicate.UserSession
UserAgentGTE applies the GTE predicate on the "user_agent" field.
func UserAgentHasPrefix ¶
func UserAgentHasPrefix(v string) predicate.UserSession
UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.
func UserAgentHasSuffix ¶
func UserAgentHasSuffix(v string) predicate.UserSession
UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.
func UserAgentIn ¶
func UserAgentIn(vs ...string) predicate.UserSession
UserAgentIn applies the In predicate on the "user_agent" field.
func UserAgentLT ¶
func UserAgentLT(v string) predicate.UserSession
UserAgentLT applies the LT predicate on the "user_agent" field.
func UserAgentLTE ¶
func UserAgentLTE(v string) predicate.UserSession
UserAgentLTE applies the LTE predicate on the "user_agent" field.
func UserAgentNEQ ¶
func UserAgentNEQ(v string) predicate.UserSession
UserAgentNEQ applies the NEQ predicate on the "user_agent" field.
func UserAgentNotIn ¶
func UserAgentNotIn(vs ...string) predicate.UserSession
UserAgentNotIn applies the NotIn predicate on the "user_agent" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.