token

package
v0.0.0-...-3c02646 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for token fields.

Functions

func And

func And(predicates ...predicate.Token) predicate.Token

And groups list of predicates with the AND operator between them.

func BlockedAt

func BlockedAt(v time.Time) predicate.Token

BlockedAt applies equality check predicate on the "blocked_at" field. It's identical to BlockedAtEQ.

func BlockedAtEQ

func BlockedAtEQ(v time.Time) predicate.Token

BlockedAtEQ applies the EQ predicate on the "blocked_at" field.

func BlockedAtGT

func BlockedAtGT(v time.Time) predicate.Token

BlockedAtGT applies the GT predicate on the "blocked_at" field.

func BlockedAtGTE

func BlockedAtGTE(v time.Time) predicate.Token

BlockedAtGTE applies the GTE predicate on the "blocked_at" field.

func BlockedAtIn

func BlockedAtIn(vs ...time.Time) predicate.Token

BlockedAtIn applies the In predicate on the "blocked_at" field.

func BlockedAtIsNil

func BlockedAtIsNil() predicate.Token

BlockedAtIsNil applies the IsNil predicate on the "blocked_at" field.

func BlockedAtLT

func BlockedAtLT(v time.Time) predicate.Token

BlockedAtLT applies the LT predicate on the "blocked_at" field.

func BlockedAtLTE

func BlockedAtLTE(v time.Time) predicate.Token

BlockedAtLTE applies the LTE predicate on the "blocked_at" field.

func BlockedAtNEQ

func BlockedAtNEQ(v time.Time) predicate.Token

BlockedAtNEQ applies the NEQ predicate on the "blocked_at" field.

func BlockedAtNotIn

func BlockedAtNotIn(vs ...time.Time) predicate.Token

BlockedAtNotIn applies the NotIn predicate on the "blocked_at" field.

func BlockedAtNotNil

func BlockedAtNotNil() predicate.Token

BlockedAtNotNil applies the NotNil predicate on the "blocked_at" field.

func Claims

func Claims(v string) predicate.Token

Claims applies equality check predicate on the "claims" field. It's identical to ClaimsEQ.

func ClaimsContains

func ClaimsContains(v string) predicate.Token

ClaimsContains applies the Contains predicate on the "claims" field.

func ClaimsContainsFold

func ClaimsContainsFold(v string) predicate.Token

ClaimsContainsFold applies the ContainsFold predicate on the "claims" field.

func ClaimsEQ

func ClaimsEQ(v string) predicate.Token

ClaimsEQ applies the EQ predicate on the "claims" field.

func ClaimsEqualFold

func ClaimsEqualFold(v string) predicate.Token

ClaimsEqualFold applies the EqualFold predicate on the "claims" field.

func ClaimsGT

func ClaimsGT(v string) predicate.Token

ClaimsGT applies the GT predicate on the "claims" field.

func ClaimsGTE

func ClaimsGTE(v string) predicate.Token

ClaimsGTE applies the GTE predicate on the "claims" field.

func ClaimsHasPrefix

func ClaimsHasPrefix(v string) predicate.Token

ClaimsHasPrefix applies the HasPrefix predicate on the "claims" field.

func ClaimsHasSuffix

func ClaimsHasSuffix(v string) predicate.Token

ClaimsHasSuffix applies the HasSuffix predicate on the "claims" field.

func ClaimsIn

func ClaimsIn(vs ...string) predicate.Token

ClaimsIn applies the In predicate on the "claims" field.

func ClaimsLT

func ClaimsLT(v string) predicate.Token

ClaimsLT applies the LT predicate on the "claims" field.

func ClaimsLTE

func ClaimsLTE(v string) predicate.Token

ClaimsLTE applies the LTE predicate on the "claims" field.

func ClaimsNEQ

func ClaimsNEQ(v string) predicate.Token

ClaimsNEQ applies the NEQ predicate on the "claims" field.

func ClaimsNotIn

func ClaimsNotIn(vs ...string) predicate.Token

ClaimsNotIn applies the NotIn predicate on the "claims" field.

func ExpiredAt

func ExpiredAt(v time.Time) predicate.Token

ExpiredAt applies equality check predicate on the "expired_at" field. It's identical to ExpiredAtEQ.

func ExpiredAtEQ

func ExpiredAtEQ(v time.Time) predicate.Token

ExpiredAtEQ applies the EQ predicate on the "expired_at" field.

func ExpiredAtGT

func ExpiredAtGT(v time.Time) predicate.Token

ExpiredAtGT applies the GT predicate on the "expired_at" field.

func ExpiredAtGTE

func ExpiredAtGTE(v time.Time) predicate.Token

ExpiredAtGTE applies the GTE predicate on the "expired_at" field.

func ExpiredAtIn

func ExpiredAtIn(vs ...time.Time) predicate.Token

ExpiredAtIn applies the In predicate on the "expired_at" field.

func ExpiredAtLT

func ExpiredAtLT(v time.Time) predicate.Token

ExpiredAtLT applies the LT predicate on the "expired_at" field.

func ExpiredAtLTE

func ExpiredAtLTE(v time.Time) predicate.Token

ExpiredAtLTE applies the LTE predicate on the "expired_at" field.

func ExpiredAtNEQ

func ExpiredAtNEQ(v time.Time) predicate.Token

ExpiredAtNEQ applies the NEQ predicate on the "expired_at" field.

func ExpiredAtNotIn

func ExpiredAtNotIn(vs ...time.Time) predicate.Token

ExpiredAtNotIn applies the NotIn predicate on the "expired_at" field.

func HasSession

func HasSession() predicate.Token

HasSession applies the HasEdge predicate on the "session" edge.

func HasSessionWith

func HasSessionWith(preds ...predicate.Session) predicate.Token

HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Token

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Token

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Token

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Token

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Token

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Token

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Token

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Token

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Token

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Token) predicate.Token

Or groups list of predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL