Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Session) predicate.Session
- func CreatedAt(v time.Time) predicate.Session
- func CreatedAtEQ(v time.Time) predicate.Session
- func CreatedAtGT(v time.Time) predicate.Session
- func CreatedAtGTE(v time.Time) predicate.Session
- func CreatedAtIn(vs ...time.Time) predicate.Session
- func CreatedAtLT(v time.Time) predicate.Session
- func CreatedAtLTE(v time.Time) predicate.Session
- func CreatedAtNEQ(v time.Time) predicate.Session
- func CreatedAtNotIn(vs ...time.Time) predicate.Session
- func CreatedBy(v int) predicate.Session
- func CreatedByEQ(v int) predicate.Session
- func CreatedByGT(v int) predicate.Session
- func CreatedByGTE(v int) predicate.Session
- func CreatedByIn(vs ...int) predicate.Session
- func CreatedByIsNil() predicate.Session
- func CreatedByLT(v int) predicate.Session
- func CreatedByLTE(v int) predicate.Session
- func CreatedByNEQ(v int) predicate.Session
- func CreatedByNotIn(vs ...int) predicate.Session
- func CreatedByNotNil() predicate.Session
- func Disabled(v bool) predicate.Session
- func DisabledEQ(v bool) predicate.Session
- func DisabledNEQ(v bool) predicate.Session
- func HasAccounts() predicate.Session
- func HasAccountsWith(preds ...predicate.Actor) predicate.Session
- func ID(id uint64) predicate.Session
- func IDEQ(id uint64) predicate.Session
- func IDGT(id uint64) predicate.Session
- func IDGTE(id uint64) predicate.Session
- func IDIn(ids ...uint64) predicate.Session
- func IDLT(id uint64) predicate.Session
- func IDLTE(id uint64) predicate.Session
- func IDNEQ(id uint64) predicate.Session
- func IDNotIn(ids ...uint64) predicate.Session
- func Ips(v string) predicate.Session
- func IpsContains(v string) predicate.Session
- func IpsContainsFold(v string) predicate.Session
- func IpsEQ(v string) predicate.Session
- func IpsEqualFold(v string) predicate.Session
- func IpsGT(v string) predicate.Session
- func IpsGTE(v string) predicate.Session
- func IpsHasPrefix(v string) predicate.Session
- func IpsHasSuffix(v string) predicate.Session
- func IpsIn(vs ...string) predicate.Session
- func IpsLT(v string) predicate.Session
- func IpsLTE(v string) predicate.Session
- func IpsNEQ(v string) predicate.Session
- func IpsNotIn(vs ...string) predicate.Session
- func Not(p predicate.Session) predicate.Session
- func Or(predicates ...predicate.Session) predicate.Session
- func Token(v string) predicate.Session
- func TokenContains(v string) predicate.Session
- func TokenContainsFold(v string) predicate.Session
- func TokenEQ(v string) predicate.Session
- func TokenEqualFold(v string) predicate.Session
- func TokenGT(v string) predicate.Session
- func TokenGTE(v string) predicate.Session
- func TokenHasPrefix(v string) predicate.Session
- func TokenHasSuffix(v string) predicate.Session
- func TokenIn(vs ...string) predicate.Session
- func TokenLT(v string) predicate.Session
- func TokenLTE(v string) predicate.Session
- func TokenNEQ(v string) predicate.Session
- func TokenNotIn(vs ...string) predicate.Session
- func TypeEQ(v Type) predicate.Session
- func TypeIn(vs ...Type) predicate.Session
- func TypeNEQ(v Type) predicate.Session
- func TypeNotIn(vs ...Type) predicate.Session
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Session
- func UpdatedAtEQ(v time.Time) predicate.Session
- func UpdatedAtGT(v time.Time) predicate.Session
- func UpdatedAtGTE(v time.Time) predicate.Session
- func UpdatedAtIn(vs ...time.Time) predicate.Session
- func UpdatedAtLT(v time.Time) predicate.Session
- func UpdatedAtLTE(v time.Time) predicate.Session
- func UpdatedAtNEQ(v time.Time) predicate.Session
- func UpdatedAtNotIn(vs ...time.Time) predicate.Session
- func UpdatedBy(v int) predicate.Session
- func UpdatedByEQ(v int) predicate.Session
- func UpdatedByGT(v int) predicate.Session
- func UpdatedByGTE(v int) predicate.Session
- func UpdatedByIn(vs ...int) predicate.Session
- func UpdatedByIsNil() predicate.Session
- func UpdatedByLT(v int) predicate.Session
- func UpdatedByLTE(v int) predicate.Session
- func UpdatedByNEQ(v int) predicate.Session
- func UpdatedByNotIn(vs ...int) predicate.Session
- func UpdatedByNotNil() predicate.Session
- func UserAgent(v string) predicate.Session
- func UserAgentContains(v string) predicate.Session
- func UserAgentContainsFold(v string) predicate.Session
- func UserAgentEQ(v string) predicate.Session
- func UserAgentEqualFold(v string) predicate.Session
- func UserAgentGT(v string) predicate.Session
- func UserAgentGTE(v string) predicate.Session
- func UserAgentHasPrefix(v string) predicate.Session
- func UserAgentHasSuffix(v string) predicate.Session
- func UserAgentIn(vs ...string) predicate.Session
- func UserAgentIsNil() predicate.Session
- func UserAgentLT(v string) predicate.Session
- func UserAgentLTE(v string) predicate.Session
- func UserAgentNEQ(v string) predicate.Session
- func UserAgentNotIn(vs ...string) predicate.Session
- func UserAgentNotNil() predicate.Session
- func ValidColumn(column string) bool
- type Type
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" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldDisabled holds the string denoting the disabled field in the database. FieldDisabled = "disabled" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldUserAgent holds the string denoting the user_agent field in the database. FieldUserAgent = "user_agent" // FieldIps holds the string denoting the ips field in the database. FieldIps = "ips" // EdgeAccounts holds the string denoting the accounts edge name in mutations. EdgeAccounts = "accounts" // Table holds the table name of the session in the database. Table = "sessions" // AccountsTable is the table that holds the accounts relation/edge. AccountsTable = "sessions" // AccountsInverseTable is the table name for the Actor entity. // It exists in this package in order to avoid circular dependency with the "actor" package. AccountsInverseTable = "actors" // AccountsColumn is the table column denoting the accounts relation/edge. AccountsColumn = "session_accounts" )
Variables ¶
var ( Hooks [3]ent.Hook Policy ent.Policy // 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 // DefaultToken holds the default value on creation for the "token" field. DefaultToken func() string // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/eriner/burr/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldType, FieldDisabled, FieldToken, FieldUserAgent, FieldIps, }
Columns holds all SQL columns for session fields.
var ForeignKeys = []string{
"actor_sessions",
"session_accounts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "sessions" table and are not defined as standalone fields in the schema.
Functions ¶
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func Disabled ¶
Disabled applies equality check predicate on the "disabled" field. It's identical to DisabledEQ.
func DisabledEQ ¶
DisabledEQ applies the EQ predicate on the "disabled" field.
func DisabledNEQ ¶
DisabledNEQ applies the NEQ predicate on the "disabled" field.
func HasAccounts ¶
HasAccounts applies the HasEdge predicate on the "accounts" edge.
func HasAccountsWith ¶
HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates).
func IpsContains ¶
IpsContains applies the Contains predicate on the "ips" field.
func IpsContainsFold ¶
IpsContainsFold applies the ContainsFold predicate on the "ips" field.
func IpsEqualFold ¶
IpsEqualFold applies the EqualFold predicate on the "ips" field.
func IpsHasPrefix ¶
IpsHasPrefix applies the HasPrefix predicate on the "ips" field.
func IpsHasSuffix ¶
IpsHasSuffix applies the HasSuffix predicate on the "ips" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserAgent ¶
UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.
func UserAgentContains ¶
UserAgentContains applies the Contains predicate on the "user_agent" field.
func UserAgentContainsFold ¶
UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.
func UserAgentEQ ¶
UserAgentEQ applies the EQ predicate on the "user_agent" field.
func UserAgentEqualFold ¶
UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.
func UserAgentGT ¶
UserAgentGT applies the GT predicate on the "user_agent" field.
func UserAgentGTE ¶
UserAgentGTE applies the GTE predicate on the "user_agent" field.
func UserAgentHasPrefix ¶
UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.
func UserAgentHasSuffix ¶
UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.
func UserAgentIn ¶
UserAgentIn applies the In predicate on the "user_agent" field.
func UserAgentIsNil ¶
UserAgentIsNil applies the IsNil predicate on the "user_agent" field.
func UserAgentLT ¶
UserAgentLT applies the LT predicate on the "user_agent" field.
func UserAgentLTE ¶
UserAgentLTE applies the LTE predicate on the "user_agent" field.
func UserAgentNEQ ¶
UserAgentNEQ applies the NEQ predicate on the "user_agent" field.
func UserAgentNotIn ¶
UserAgentNotIn applies the NotIn predicate on the "user_agent" field.
func UserAgentNotNil ¶
UserAgentNotNil applies the NotNil predicate on the "user_agent" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).