Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) predicate.Session
- func BrowserName(v string) predicate.Session
- func BrowserNameContains(v string) predicate.Session
- func BrowserNameContainsFold(v string) predicate.Session
- func BrowserNameEQ(v string) predicate.Session
- func BrowserNameEqualFold(v string) predicate.Session
- func BrowserNameGT(v string) predicate.Session
- func BrowserNameGTE(v string) predicate.Session
- func BrowserNameHasPrefix(v string) predicate.Session
- func BrowserNameHasSuffix(v string) predicate.Session
- func BrowserNameIn(vs ...string) predicate.Session
- func BrowserNameLT(v string) predicate.Session
- func BrowserNameLTE(v string) predicate.Session
- func BrowserNameNEQ(v string) predicate.Session
- func BrowserNameNotIn(vs ...string) predicate.Session
- func BrowserVersion(v string) predicate.Session
- func BrowserVersionContains(v string) predicate.Session
- func BrowserVersionContainsFold(v string) predicate.Session
- func BrowserVersionEQ(v string) predicate.Session
- func BrowserVersionEqualFold(v string) predicate.Session
- func BrowserVersionGT(v string) predicate.Session
- func BrowserVersionGTE(v string) predicate.Session
- func BrowserVersionHasPrefix(v string) predicate.Session
- func BrowserVersionHasSuffix(v string) predicate.Session
- func BrowserVersionIn(vs ...string) predicate.Session
- func BrowserVersionLT(v string) predicate.Session
- func BrowserVersionLTE(v string) predicate.Session
- func BrowserVersionNEQ(v string) predicate.Session
- func BrowserVersionNotIn(vs ...string) predicate.Session
- func CreateTime(v time.Time) predicate.Session
- func CreateTimeEQ(v time.Time) predicate.Session
- func CreateTimeGT(v time.Time) predicate.Session
- func CreateTimeGTE(v time.Time) predicate.Session
- func CreateTimeIn(vs ...time.Time) predicate.Session
- func CreateTimeLT(v time.Time) predicate.Session
- func CreateTimeLTE(v time.Time) predicate.Session
- func CreateTimeNEQ(v time.Time) predicate.Session
- func CreateTimeNotIn(vs ...time.Time) predicate.Session
- func DeviceOs(v string) predicate.Session
- func DeviceOsContains(v string) predicate.Session
- func DeviceOsContainsFold(v string) predicate.Session
- func DeviceOsEQ(v string) predicate.Session
- func DeviceOsEqualFold(v string) predicate.Session
- func DeviceOsGT(v string) predicate.Session
- func DeviceOsGTE(v string) predicate.Session
- func DeviceOsHasPrefix(v string) predicate.Session
- func DeviceOsHasSuffix(v string) predicate.Session
- func DeviceOsIn(vs ...string) predicate.Session
- func DeviceOsLT(v string) predicate.Session
- func DeviceOsLTE(v string) predicate.Session
- func DeviceOsNEQ(v string) predicate.Session
- func DeviceOsNotIn(vs ...string) predicate.Session
- func DeviceType(v string) predicate.Session
- func DeviceTypeContains(v string) predicate.Session
- func DeviceTypeContainsFold(v string) predicate.Session
- func DeviceTypeEQ(v string) predicate.Session
- func DeviceTypeEqualFold(v string) predicate.Session
- func DeviceTypeGT(v string) predicate.Session
- func DeviceTypeGTE(v string) predicate.Session
- func DeviceTypeHasPrefix(v string) predicate.Session
- func DeviceTypeHasSuffix(v string) predicate.Session
- func DeviceTypeIn(vs ...string) predicate.Session
- func DeviceTypeLT(v string) predicate.Session
- func DeviceTypeLTE(v string) predicate.Session
- func DeviceTypeNEQ(v string) predicate.Session
- func DeviceTypeNotIn(vs ...string) predicate.Session
- func HasToken() predicate.Session
- func HasTokenWith(preds ...predicate.Token) predicate.Session
- func HasUser() predicate.Session
- func HasUserWith(preds ...predicate.User) predicate.Session
- func ID(id int) predicate.Session
- func IDEQ(id int) predicate.Session
- func IDGT(id int) predicate.Session
- func IDGTE(id int) predicate.Session
- func IDIn(ids ...int) predicate.Session
- func IDLT(id int) predicate.Session
- func IDLTE(id int) predicate.Session
- func IDNEQ(id int) predicate.Session
- func IDNotIn(ids ...int) predicate.Session
- func IPAddress(v string) predicate.Session
- func IPAddressContains(v string) predicate.Session
- func IPAddressContainsFold(v string) predicate.Session
- func IPAddressEQ(v string) predicate.Session
- func IPAddressEqualFold(v string) predicate.Session
- func IPAddressGT(v string) predicate.Session
- func IPAddressGTE(v string) predicate.Session
- func IPAddressHasPrefix(v string) predicate.Session
- func IPAddressHasSuffix(v string) predicate.Session
- func IPAddressIn(vs ...string) predicate.Session
- func IPAddressLT(v string) predicate.Session
- func IPAddressLTE(v string) predicate.Session
- func IPAddressNEQ(v string) predicate.Session
- func IPAddressNotIn(vs ...string) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func TerminatedAt(v time.Time) predicate.Session
- func TerminatedAtEQ(v time.Time) predicate.Session
- func TerminatedAtGT(v time.Time) predicate.Session
- func TerminatedAtGTE(v time.Time) predicate.Session
- func TerminatedAtIn(vs ...time.Time) predicate.Session
- func TerminatedAtIsNil() predicate.Session
- func TerminatedAtLT(v time.Time) predicate.Session
- func TerminatedAtLTE(v time.Time) predicate.Session
- func TerminatedAtNEQ(v time.Time) predicate.Session
- func TerminatedAtNotIn(vs ...time.Time) predicate.Session
- func TerminatedAtNotNil() predicate.Session
- func UpdateTime(v time.Time) predicate.Session
- func UpdateTimeEQ(v time.Time) predicate.Session
- func UpdateTimeGT(v time.Time) predicate.Session
- func UpdateTimeGTE(v time.Time) predicate.Session
- func UpdateTimeIn(vs ...time.Time) predicate.Session
- func UpdateTimeLT(v time.Time) predicate.Session
- func UpdateTimeLTE(v time.Time) predicate.Session
- func UpdateTimeNEQ(v time.Time) predicate.Session
- func UpdateTimeNotIn(vs ...time.Time) predicate.Session
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the session type in the database. Label = "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" // FieldIPAddress holds the string denoting the ip_address field in the database. FieldIPAddress = "ip_address" // FieldBrowserName holds the string denoting the browser_name field in the database. FieldBrowserName = "browser_name" // FieldBrowserVersion holds the string denoting the browser_version field in the database. FieldBrowserVersion = "browser_version" // FieldDeviceOs holds the string denoting the device_os field in the database. FieldDeviceOs = "device_os" // FieldDeviceType holds the string denoting the device_type field in the database. FieldDeviceType = "device_type" // FieldTerminatedAt holds the string denoting the terminated_at field in the database. FieldTerminatedAt = "terminated_at" // EdgeToken holds the string denoting the token edge name in mutations. EdgeToken = "token" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the session in the database. Table = "sessions" // TokenTable is the table the holds the token relation/edge. TokenTable = "sessions" // TokenInverseTable is the table name for the Token entity. // It exists in this package in order to avoid circular dependency with the "token" package. TokenInverseTable = "tokens" // TokenColumn is the table column denoting the token relation/edge. TokenColumn = "token_session" // UserTable is the table the holds the user relation/edge. UserTable = "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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldIPAddress, FieldBrowserName, FieldBrowserVersion, FieldDeviceOs, FieldDeviceType, FieldTerminatedAt, }
Columns holds all SQL columns for session fields.
var ForeignKeys = []string{
"token_session",
"user_sessions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Session type.
Functions ¶
func BrowserName ¶
BrowserName applies equality check predicate on the "browser_name" field. It's identical to BrowserNameEQ.
func BrowserNameContains ¶
BrowserNameContains applies the Contains predicate on the "browser_name" field.
func BrowserNameContainsFold ¶
BrowserNameContainsFold applies the ContainsFold predicate on the "browser_name" field.
func BrowserNameEQ ¶
BrowserNameEQ applies the EQ predicate on the "browser_name" field.
func BrowserNameEqualFold ¶
BrowserNameEqualFold applies the EqualFold predicate on the "browser_name" field.
func BrowserNameGT ¶
BrowserNameGT applies the GT predicate on the "browser_name" field.
func BrowserNameGTE ¶
BrowserNameGTE applies the GTE predicate on the "browser_name" field.
func BrowserNameHasPrefix ¶
BrowserNameHasPrefix applies the HasPrefix predicate on the "browser_name" field.
func BrowserNameHasSuffix ¶
BrowserNameHasSuffix applies the HasSuffix predicate on the "browser_name" field.
func BrowserNameIn ¶
BrowserNameIn applies the In predicate on the "browser_name" field.
func BrowserNameLT ¶
BrowserNameLT applies the LT predicate on the "browser_name" field.
func BrowserNameLTE ¶
BrowserNameLTE applies the LTE predicate on the "browser_name" field.
func BrowserNameNEQ ¶
BrowserNameNEQ applies the NEQ predicate on the "browser_name" field.
func BrowserNameNotIn ¶
BrowserNameNotIn applies the NotIn predicate on the "browser_name" field.
func BrowserVersion ¶
BrowserVersion applies equality check predicate on the "browser_version" field. It's identical to BrowserVersionEQ.
func BrowserVersionContains ¶
BrowserVersionContains applies the Contains predicate on the "browser_version" field.
func BrowserVersionContainsFold ¶
BrowserVersionContainsFold applies the ContainsFold predicate on the "browser_version" field.
func BrowserVersionEQ ¶
BrowserVersionEQ applies the EQ predicate on the "browser_version" field.
func BrowserVersionEqualFold ¶
BrowserVersionEqualFold applies the EqualFold predicate on the "browser_version" field.
func BrowserVersionGT ¶
BrowserVersionGT applies the GT predicate on the "browser_version" field.
func BrowserVersionGTE ¶
BrowserVersionGTE applies the GTE predicate on the "browser_version" field.
func BrowserVersionHasPrefix ¶
BrowserVersionHasPrefix applies the HasPrefix predicate on the "browser_version" field.
func BrowserVersionHasSuffix ¶
BrowserVersionHasSuffix applies the HasSuffix predicate on the "browser_version" field.
func BrowserVersionIn ¶
BrowserVersionIn applies the In predicate on the "browser_version" field.
func BrowserVersionLT ¶
BrowserVersionLT applies the LT predicate on the "browser_version" field.
func BrowserVersionLTE ¶
BrowserVersionLTE applies the LTE predicate on the "browser_version" field.
func BrowserVersionNEQ ¶
BrowserVersionNEQ applies the NEQ predicate on the "browser_version" field.
func BrowserVersionNotIn ¶
BrowserVersionNotIn applies the NotIn predicate on the "browser_version" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func DeviceOs ¶
DeviceOs applies equality check predicate on the "device_os" field. It's identical to DeviceOsEQ.
func DeviceOsContains ¶
DeviceOsContains applies the Contains predicate on the "device_os" field.
func DeviceOsContainsFold ¶
DeviceOsContainsFold applies the ContainsFold predicate on the "device_os" field.
func DeviceOsEQ ¶
DeviceOsEQ applies the EQ predicate on the "device_os" field.
func DeviceOsEqualFold ¶
DeviceOsEqualFold applies the EqualFold predicate on the "device_os" field.
func DeviceOsGT ¶
DeviceOsGT applies the GT predicate on the "device_os" field.
func DeviceOsGTE ¶
DeviceOsGTE applies the GTE predicate on the "device_os" field.
func DeviceOsHasPrefix ¶
DeviceOsHasPrefix applies the HasPrefix predicate on the "device_os" field.
func DeviceOsHasSuffix ¶
DeviceOsHasSuffix applies the HasSuffix predicate on the "device_os" field.
func DeviceOsIn ¶
DeviceOsIn applies the In predicate on the "device_os" field.
func DeviceOsLT ¶
DeviceOsLT applies the LT predicate on the "device_os" field.
func DeviceOsLTE ¶
DeviceOsLTE applies the LTE predicate on the "device_os" field.
func DeviceOsNEQ ¶
DeviceOsNEQ applies the NEQ predicate on the "device_os" field.
func DeviceOsNotIn ¶
DeviceOsNotIn applies the NotIn predicate on the "device_os" field.
func DeviceType ¶
DeviceType applies equality check predicate on the "device_type" field. It's identical to DeviceTypeEQ.
func DeviceTypeContains ¶
DeviceTypeContains applies the Contains predicate on the "device_type" field.
func DeviceTypeContainsFold ¶
DeviceTypeContainsFold applies the ContainsFold predicate on the "device_type" field.
func DeviceTypeEQ ¶
DeviceTypeEQ applies the EQ predicate on the "device_type" field.
func DeviceTypeEqualFold ¶
DeviceTypeEqualFold applies the EqualFold predicate on the "device_type" field.
func DeviceTypeGT ¶
DeviceTypeGT applies the GT predicate on the "device_type" field.
func DeviceTypeGTE ¶
DeviceTypeGTE applies the GTE predicate on the "device_type" field.
func DeviceTypeHasPrefix ¶
DeviceTypeHasPrefix applies the HasPrefix predicate on the "device_type" field.
func DeviceTypeHasSuffix ¶
DeviceTypeHasSuffix applies the HasSuffix predicate on the "device_type" field.
func DeviceTypeIn ¶
DeviceTypeIn applies the In predicate on the "device_type" field.
func DeviceTypeLT ¶
DeviceTypeLT applies the LT predicate on the "device_type" field.
func DeviceTypeLTE ¶
DeviceTypeLTE applies the LTE predicate on the "device_type" field.
func DeviceTypeNEQ ¶
DeviceTypeNEQ applies the NEQ predicate on the "device_type" field.
func DeviceTypeNotIn ¶
DeviceTypeNotIn applies the NotIn predicate on the "device_type" field.
func HasTokenWith ¶
HasTokenWith applies the HasEdge predicate on the "token" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IPAddress ¶
IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.
func IPAddressContains ¶
IPAddressContains applies the Contains predicate on the "ip_address" field.
func IPAddressContainsFold ¶
IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.
func IPAddressEQ ¶
IPAddressEQ applies the EQ predicate on the "ip_address" field.
func IPAddressEqualFold ¶
IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.
func IPAddressGT ¶
IPAddressGT applies the GT predicate on the "ip_address" field.
func IPAddressGTE ¶
IPAddressGTE applies the GTE predicate on the "ip_address" field.
func IPAddressHasPrefix ¶
IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.
func IPAddressHasSuffix ¶
IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.
func IPAddressIn ¶
IPAddressIn applies the In predicate on the "ip_address" field.
func IPAddressLT ¶
IPAddressLT applies the LT predicate on the "ip_address" field.
func IPAddressLTE ¶
IPAddressLTE applies the LTE predicate on the "ip_address" field.
func IPAddressNEQ ¶
IPAddressNEQ applies the NEQ predicate on the "ip_address" field.
func IPAddressNotIn ¶
IPAddressNotIn applies the NotIn predicate on the "ip_address" field.
func TerminatedAt ¶
TerminatedAt applies equality check predicate on the "terminated_at" field. It's identical to TerminatedAtEQ.
func TerminatedAtEQ ¶
TerminatedAtEQ applies the EQ predicate on the "terminated_at" field.
func TerminatedAtGT ¶
TerminatedAtGT applies the GT predicate on the "terminated_at" field.
func TerminatedAtGTE ¶
TerminatedAtGTE applies the GTE predicate on the "terminated_at" field.
func TerminatedAtIn ¶
TerminatedAtIn applies the In predicate on the "terminated_at" field.
func TerminatedAtIsNil ¶
TerminatedAtIsNil applies the IsNil predicate on the "terminated_at" field.
func TerminatedAtLT ¶
TerminatedAtLT applies the LT predicate on the "terminated_at" field.
func TerminatedAtLTE ¶
TerminatedAtLTE applies the LTE predicate on the "terminated_at" field.
func TerminatedAtNEQ ¶
TerminatedAtNEQ applies the NEQ predicate on the "terminated_at" field.
func TerminatedAtNotIn ¶
TerminatedAtNotIn applies the NotIn predicate on the "terminated_at" field.
func TerminatedAtNotNil ¶
TerminatedAtNotNil applies the NotNil predicate on the "terminated_at" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.