tokens

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tokens type in the database.
	Label = "tokens"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldAccessToken holds the string denoting the access_token field in the database.
	FieldAccessToken = "access_token"
	// FieldRefreshToken holds the string denoting the refresh_token field in the database.
	FieldRefreshToken = "refresh_token"
	// FieldTokenType holds the string denoting the token_type field in the database.
	FieldTokenType = "token_type"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// FieldRaw holds the string denoting the raw field in the database.
	FieldRaw = "raw"
	// Table holds the table name of the tokens in the database.
	Table = "tokens"
)

Variables

View Source
var (
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// AccessTokenValidator is a validator for the "access_token" field. It is called by the builders before save.
	AccessTokenValidator func(string) error
	// TokenTypeValidator is a validator for the "token_type" field. It is called by the builders before save.
	TokenTypeValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for tokens fields.

Functions

func AccessToken

func AccessToken(v string) predicate.Tokens

AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.

func AccessTokenContains

func AccessTokenContains(v string) predicate.Tokens

AccessTokenContains applies the Contains predicate on the "access_token" field.

func AccessTokenContainsFold

func AccessTokenContainsFold(v string) predicate.Tokens

AccessTokenContainsFold applies the ContainsFold predicate on the "access_token" field.

func AccessTokenEQ

func AccessTokenEQ(v string) predicate.Tokens

AccessTokenEQ applies the EQ predicate on the "access_token" field.

func AccessTokenEqualFold

func AccessTokenEqualFold(v string) predicate.Tokens

AccessTokenEqualFold applies the EqualFold predicate on the "access_token" field.

func AccessTokenGT

func AccessTokenGT(v string) predicate.Tokens

AccessTokenGT applies the GT predicate on the "access_token" field.

func AccessTokenGTE

func AccessTokenGTE(v string) predicate.Tokens

AccessTokenGTE applies the GTE predicate on the "access_token" field.

func AccessTokenHasPrefix

func AccessTokenHasPrefix(v string) predicate.Tokens

AccessTokenHasPrefix applies the HasPrefix predicate on the "access_token" field.

func AccessTokenHasSuffix

func AccessTokenHasSuffix(v string) predicate.Tokens

AccessTokenHasSuffix applies the HasSuffix predicate on the "access_token" field.

func AccessTokenIn

func AccessTokenIn(vs ...string) predicate.Tokens

AccessTokenIn applies the In predicate on the "access_token" field.

func AccessTokenLT

func AccessTokenLT(v string) predicate.Tokens

AccessTokenLT applies the LT predicate on the "access_token" field.

func AccessTokenLTE

func AccessTokenLTE(v string) predicate.Tokens

AccessTokenLTE applies the LTE predicate on the "access_token" field.

func AccessTokenNEQ

func AccessTokenNEQ(v string) predicate.Tokens

AccessTokenNEQ applies the NEQ predicate on the "access_token" field.

func AccessTokenNotIn

func AccessTokenNotIn(vs ...string) predicate.Tokens

AccessTokenNotIn applies the NotIn predicate on the "access_token" field.

func And

func And(predicates ...predicate.Tokens) predicate.Tokens

And groups predicates with the AND operator between them.

func Email

func Email(v string) predicate.Tokens

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Tokens

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Tokens

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Tokens

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Tokens

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Tokens

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Tokens

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Tokens

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Tokens

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Tokens

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Tokens

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Tokens

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Tokens

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Tokens

EmailNotIn applies the NotIn predicate on the "email" field.

func Expiry

func Expiry(v time.Time) predicate.Tokens

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.Tokens

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.Tokens

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.Tokens

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

func ExpiryIn(vs ...time.Time) predicate.Tokens

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.Tokens

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.Tokens

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.Tokens

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

func ExpiryNotIn(vs ...time.Time) predicate.Tokens

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func ID

func ID(id uuid.UUID) predicate.Tokens

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Tokens

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Tokens

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Tokens

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Tokens

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Tokens

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Tokens

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Tokens

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.Tokens) predicate.Tokens

Or groups predicates with the OR operator between them.

func RefreshToken

func RefreshToken(v string) predicate.Tokens

RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.

func RefreshTokenContains

func RefreshTokenContains(v string) predicate.Tokens

RefreshTokenContains applies the Contains predicate on the "refresh_token" field.

func RefreshTokenContainsFold

func RefreshTokenContainsFold(v string) predicate.Tokens

RefreshTokenContainsFold applies the ContainsFold predicate on the "refresh_token" field.

func RefreshTokenEQ

func RefreshTokenEQ(v string) predicate.Tokens

RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.

func RefreshTokenEqualFold

func RefreshTokenEqualFold(v string) predicate.Tokens

RefreshTokenEqualFold applies the EqualFold predicate on the "refresh_token" field.

func RefreshTokenGT

func RefreshTokenGT(v string) predicate.Tokens

RefreshTokenGT applies the GT predicate on the "refresh_token" field.

func RefreshTokenGTE

func RefreshTokenGTE(v string) predicate.Tokens

RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.

func RefreshTokenHasPrefix

func RefreshTokenHasPrefix(v string) predicate.Tokens

RefreshTokenHasPrefix applies the HasPrefix predicate on the "refresh_token" field.

func RefreshTokenHasSuffix

func RefreshTokenHasSuffix(v string) predicate.Tokens

RefreshTokenHasSuffix applies the HasSuffix predicate on the "refresh_token" field.

func RefreshTokenIn

func RefreshTokenIn(vs ...string) predicate.Tokens

RefreshTokenIn applies the In predicate on the "refresh_token" field.

func RefreshTokenLT

func RefreshTokenLT(v string) predicate.Tokens

RefreshTokenLT applies the LT predicate on the "refresh_token" field.

func RefreshTokenLTE

func RefreshTokenLTE(v string) predicate.Tokens

RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.

func RefreshTokenNEQ

func RefreshTokenNEQ(v string) predicate.Tokens

RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.

func RefreshTokenNotIn

func RefreshTokenNotIn(vs ...string) predicate.Tokens

RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.

func TokenType

func TokenType(v string) predicate.Tokens

TokenType applies equality check predicate on the "token_type" field. It's identical to TokenTypeEQ.

func TokenTypeContains

func TokenTypeContains(v string) predicate.Tokens

TokenTypeContains applies the Contains predicate on the "token_type" field.

func TokenTypeContainsFold

func TokenTypeContainsFold(v string) predicate.Tokens

TokenTypeContainsFold applies the ContainsFold predicate on the "token_type" field.

func TokenTypeEQ

func TokenTypeEQ(v string) predicate.Tokens

TokenTypeEQ applies the EQ predicate on the "token_type" field.

func TokenTypeEqualFold

func TokenTypeEqualFold(v string) predicate.Tokens

TokenTypeEqualFold applies the EqualFold predicate on the "token_type" field.

func TokenTypeGT

func TokenTypeGT(v string) predicate.Tokens

TokenTypeGT applies the GT predicate on the "token_type" field.

func TokenTypeGTE

func TokenTypeGTE(v string) predicate.Tokens

TokenTypeGTE applies the GTE predicate on the "token_type" field.

func TokenTypeHasPrefix

func TokenTypeHasPrefix(v string) predicate.Tokens

TokenTypeHasPrefix applies the HasPrefix predicate on the "token_type" field.

func TokenTypeHasSuffix

func TokenTypeHasSuffix(v string) predicate.Tokens

TokenTypeHasSuffix applies the HasSuffix predicate on the "token_type" field.

func TokenTypeIn

func TokenTypeIn(vs ...string) predicate.Tokens

TokenTypeIn applies the In predicate on the "token_type" field.

func TokenTypeLT

func TokenTypeLT(v string) predicate.Tokens

TokenTypeLT applies the LT predicate on the "token_type" field.

func TokenTypeLTE

func TokenTypeLTE(v string) predicate.Tokens

TokenTypeLTE applies the LTE predicate on the "token_type" field.

func TokenTypeNEQ

func TokenTypeNEQ(v string) predicate.Tokens

TokenTypeNEQ applies the NEQ predicate on the "token_type" field.

func TokenTypeNotIn

func TokenTypeNotIn(vs ...string) predicate.Tokens

TokenTypeNotIn applies the NotIn predicate on the "token_type" 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