Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Token) predicate.Token
- func BlockedAt(v time.Time) predicate.Token
- func BlockedAtEQ(v time.Time) predicate.Token
- func BlockedAtGT(v time.Time) predicate.Token
- func BlockedAtGTE(v time.Time) predicate.Token
- func BlockedAtIn(vs ...time.Time) predicate.Token
- func BlockedAtIsNil() predicate.Token
- func BlockedAtLT(v time.Time) predicate.Token
- func BlockedAtLTE(v time.Time) predicate.Token
- func BlockedAtNEQ(v time.Time) predicate.Token
- func BlockedAtNotIn(vs ...time.Time) predicate.Token
- func BlockedAtNotNil() predicate.Token
- func Claims(v string) predicate.Token
- func ClaimsContains(v string) predicate.Token
- func ClaimsContainsFold(v string) predicate.Token
- func ClaimsEQ(v string) predicate.Token
- func ClaimsEqualFold(v string) predicate.Token
- func ClaimsGT(v string) predicate.Token
- func ClaimsGTE(v string) predicate.Token
- func ClaimsHasPrefix(v string) predicate.Token
- func ClaimsHasSuffix(v string) predicate.Token
- func ClaimsIn(vs ...string) predicate.Token
- func ClaimsLT(v string) predicate.Token
- func ClaimsLTE(v string) predicate.Token
- func ClaimsNEQ(v string) predicate.Token
- func ClaimsNotIn(vs ...string) predicate.Token
- func ExpiredAt(v time.Time) predicate.Token
- func ExpiredAtEQ(v time.Time) predicate.Token
- func ExpiredAtGT(v time.Time) predicate.Token
- func ExpiredAtGTE(v time.Time) predicate.Token
- func ExpiredAtIn(vs ...time.Time) predicate.Token
- func ExpiredAtLT(v time.Time) predicate.Token
- func ExpiredAtLTE(v time.Time) predicate.Token
- func ExpiredAtNEQ(v time.Time) predicate.Token
- func ExpiredAtNotIn(vs ...time.Time) predicate.Token
- func HasSession() predicate.Token
- func HasSessionWith(preds ...predicate.Session) predicate.Token
- func ID(id int) predicate.Token
- func IDEQ(id int) predicate.Token
- func IDGT(id int) predicate.Token
- func IDGTE(id int) predicate.Token
- func IDIn(ids ...int) predicate.Token
- func IDLT(id int) predicate.Token
- func IDLTE(id int) predicate.Token
- func IDNEQ(id int) predicate.Token
- func IDNotIn(ids ...int) predicate.Token
- func Not(p predicate.Token) predicate.Token
- func Or(predicates ...predicate.Token) predicate.Token
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the token type in the database. Label = "token" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldExpiredAt holds the string denoting the expired_at field in the database. FieldExpiredAt = "expired_at" // FieldBlockedAt holds the string denoting the blocked_at field in the database. FieldBlockedAt = "blocked_at" // FieldClaims holds the string denoting the claims field in the database. FieldClaims = "claims" // EdgeSession holds the string denoting the session edge name in mutations. EdgeSession = "session" // Table holds the table name of the token in the database. Table = "tokens" // SessionTable is the table the holds the session relation/edge. SessionTable = "sessions" // SessionInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionInverseTable = "sessions" // SessionColumn is the table column denoting the session relation/edge. SessionColumn = "token_session" )
Variables ¶
var Columns = []string{ FieldID, FieldExpiredAt, FieldBlockedAt, FieldClaims, }
Columns holds all SQL columns for token fields.
Functions ¶
func BlockedAt ¶
BlockedAt applies equality check predicate on the "blocked_at" field. It's identical to BlockedAtEQ.
func BlockedAtEQ ¶
BlockedAtEQ applies the EQ predicate on the "blocked_at" field.
func BlockedAtGT ¶
BlockedAtGT applies the GT predicate on the "blocked_at" field.
func BlockedAtGTE ¶
BlockedAtGTE applies the GTE predicate on the "blocked_at" field.
func BlockedAtIn ¶
BlockedAtIn applies the In predicate on the "blocked_at" field.
func BlockedAtIsNil ¶
BlockedAtIsNil applies the IsNil predicate on the "blocked_at" field.
func BlockedAtLT ¶
BlockedAtLT applies the LT predicate on the "blocked_at" field.
func BlockedAtLTE ¶
BlockedAtLTE applies the LTE predicate on the "blocked_at" field.
func BlockedAtNEQ ¶
BlockedAtNEQ applies the NEQ predicate on the "blocked_at" field.
func BlockedAtNotIn ¶
BlockedAtNotIn applies the NotIn predicate on the "blocked_at" field.
func BlockedAtNotNil ¶
BlockedAtNotNil applies the NotNil predicate on the "blocked_at" field.
func Claims ¶
Claims applies equality check predicate on the "claims" field. It's identical to ClaimsEQ.
func ClaimsContains ¶
ClaimsContains applies the Contains predicate on the "claims" field.
func ClaimsContainsFold ¶
ClaimsContainsFold applies the ContainsFold predicate on the "claims" field.
func ClaimsEqualFold ¶
ClaimsEqualFold applies the EqualFold predicate on the "claims" field.
func ClaimsHasPrefix ¶
ClaimsHasPrefix applies the HasPrefix predicate on the "claims" field.
func ClaimsHasSuffix ¶
ClaimsHasSuffix applies the HasSuffix predicate on the "claims" field.
func ClaimsNotIn ¶
ClaimsNotIn applies the NotIn predicate on the "claims" field.
func ExpiredAt ¶
ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.
func ExpiredAtEQ ¶
ExpiredAtEQ applies the EQ predicate on the "expired_at" field.
func ExpiredAtGT ¶
ExpiredAtGT applies the GT predicate on the "expired_at" field.
func ExpiredAtGTE ¶
ExpiredAtGTE applies the GTE predicate on the "expired_at" field.
func ExpiredAtIn ¶
ExpiredAtIn applies the In predicate on the "expired_at" field.
func ExpiredAtLT ¶
ExpiredAtLT applies the LT predicate on the "expired_at" field.
func ExpiredAtLTE ¶
ExpiredAtLTE applies the LTE predicate on the "expired_at" field.
func ExpiredAtNEQ ¶
ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.
func ExpiredAtNotIn ¶
ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.
func HasSession ¶
HasSession applies the HasEdge predicate on the "session" edge.
func HasSessionWith ¶
HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.