token

package
v0.0.0-...-42c0c98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT 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"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldExpireAt holds the string denoting the expire_at field in the database.
	FieldExpireAt = "expire_at"
	// EdgeTokenToUser holds the string denoting the tokentouser edge name in mutations.
	EdgeTokenToUser = "TokenToUser"
	// UserFieldID holds the string denoting the ID field of the User.
	UserFieldID = "oid"
	// Table holds the table name of the token in the database.
	Table = "tokens"
	// TokenToUserTable is the table that holds the TokenToUser relation/edge.
	TokenToUserTable = "tokens"
	// TokenToUserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	TokenToUserInverseTable = "users"
	// TokenToUserColumn is the table column denoting the TokenToUser relation/edge.
	TokenToUserColumn = "user_user_to_token"
)

Variables

Columns holds all SQL columns for token fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var ForeignKeys = []string{
	"user_user_to_token",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "tokens" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func ExpireAt

func ExpireAt(v int64) predicate.Token

ExpireAt applies equality check predicate on the "expire_at" field. It's identical to ExpireAtEQ.

func ExpireAtEQ

func ExpireAtEQ(v int64) predicate.Token

ExpireAtEQ applies the EQ predicate on the "expire_at" field.

func ExpireAtGT

func ExpireAtGT(v int64) predicate.Token

ExpireAtGT applies the GT predicate on the "expire_at" field.

func ExpireAtGTE

func ExpireAtGTE(v int64) predicate.Token

ExpireAtGTE applies the GTE predicate on the "expire_at" field.

func ExpireAtIn

func ExpireAtIn(vs ...int64) predicate.Token

ExpireAtIn applies the In predicate on the "expire_at" field.

func ExpireAtLT

func ExpireAtLT(v int64) predicate.Token

ExpireAtLT applies the LT predicate on the "expire_at" field.

func ExpireAtLTE

func ExpireAtLTE(v int64) predicate.Token

ExpireAtLTE applies the LTE predicate on the "expire_at" field.

func ExpireAtNEQ

func ExpireAtNEQ(v int64) predicate.Token

ExpireAtNEQ applies the NEQ predicate on the "expire_at" field.

func ExpireAtNotIn

func ExpireAtNotIn(vs ...int64) predicate.Token

ExpireAtNotIn applies the NotIn predicate on the "expire_at" field.

func HasTokenToUser

func HasTokenToUser() predicate.Token

HasTokenToUser applies the HasEdge predicate on the "TokenToUser" edge.

func HasTokenToUserWith

func HasTokenToUserWith(preds ...predicate.User) predicate.Token

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

func ID

func ID(id uuid.UUID) predicate.Token

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Token

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Token

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Token

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Token

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Token

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Token

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Token

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) 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 predicates with the OR operator between them.

func Token

func Token(v string) predicate.Token

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.Token

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.Token

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.Token

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.Token

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.Token

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.Token

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.Token

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.Token

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

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

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.Token

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.Token

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.Token

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

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

TokenNotIn applies the NotIn predicate on the "token" field.

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