Help us shape the future of Go! Take the 2026 Go Developer Survey

verificationtoken

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the verificationtoken type in the database.
	Label = "verification_token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTokenHash holds the string denoting the token_hash field in the database.
	FieldTokenHash = "token_hash"
	// FieldPurpose holds the string denoting the purpose field in the database.
	FieldPurpose = "purpose"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPrincipalID holds the string denoting the principal_id field in the database.
	FieldPrincipalID = "principal_id"
	// FieldBinding holds the string denoting the binding field in the database.
	FieldBinding = "binding"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldConsumedAt holds the string denoting the consumed_at field in the database.
	FieldConsumedAt = "consumed_at"
	// Table holds the table name of the verificationtoken in the database.
	Table = "sf_verification_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
	// BindingValidator is a validator for the "binding" field. It is called by the builders before save.
	BindingValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for verificationtoken fields.

Functions

func And

And groups predicates with the AND operator between them.

func Binding

Binding applies equality check predicate on the "binding" field. It's identical to BindingEQ.

func BindingContains

func BindingContains(v string) predicate.VerificationToken

BindingContains applies the Contains predicate on the "binding" field.

func BindingContainsFold

func BindingContainsFold(v string) predicate.VerificationToken

BindingContainsFold applies the ContainsFold predicate on the "binding" field.

func BindingEQ

func BindingEQ(v string) predicate.VerificationToken

BindingEQ applies the EQ predicate on the "binding" field.

func BindingEqualFold

func BindingEqualFold(v string) predicate.VerificationToken

BindingEqualFold applies the EqualFold predicate on the "binding" field.

func BindingGT

func BindingGT(v string) predicate.VerificationToken

BindingGT applies the GT predicate on the "binding" field.

func BindingGTE

func BindingGTE(v string) predicate.VerificationToken

BindingGTE applies the GTE predicate on the "binding" field.

func BindingHasPrefix

func BindingHasPrefix(v string) predicate.VerificationToken

BindingHasPrefix applies the HasPrefix predicate on the "binding" field.

func BindingHasSuffix

func BindingHasSuffix(v string) predicate.VerificationToken

BindingHasSuffix applies the HasSuffix predicate on the "binding" field.

func BindingIn

func BindingIn(vs ...string) predicate.VerificationToken

BindingIn applies the In predicate on the "binding" field.

func BindingLT

func BindingLT(v string) predicate.VerificationToken

BindingLT applies the LT predicate on the "binding" field.

func BindingLTE

func BindingLTE(v string) predicate.VerificationToken

BindingLTE applies the LTE predicate on the "binding" field.

func BindingNEQ

func BindingNEQ(v string) predicate.VerificationToken

BindingNEQ applies the NEQ predicate on the "binding" field.

func BindingNotIn

func BindingNotIn(vs ...string) predicate.VerificationToken

BindingNotIn applies the NotIn predicate on the "binding" field.

func ConsumedAt

func ConsumedAt(v time.Time) predicate.VerificationToken

ConsumedAt applies equality check predicate on the "consumed_at" field. It's identical to ConsumedAtEQ.

func ConsumedAtEQ

func ConsumedAtEQ(v time.Time) predicate.VerificationToken

ConsumedAtEQ applies the EQ predicate on the "consumed_at" field.

func ConsumedAtGT

func ConsumedAtGT(v time.Time) predicate.VerificationToken

ConsumedAtGT applies the GT predicate on the "consumed_at" field.

func ConsumedAtGTE

func ConsumedAtGTE(v time.Time) predicate.VerificationToken

ConsumedAtGTE applies the GTE predicate on the "consumed_at" field.

func ConsumedAtIn

func ConsumedAtIn(vs ...time.Time) predicate.VerificationToken

ConsumedAtIn applies the In predicate on the "consumed_at" field.

func ConsumedAtIsNil

func ConsumedAtIsNil() predicate.VerificationToken

ConsumedAtIsNil applies the IsNil predicate on the "consumed_at" field.

func ConsumedAtLT

func ConsumedAtLT(v time.Time) predicate.VerificationToken

ConsumedAtLT applies the LT predicate on the "consumed_at" field.

func ConsumedAtLTE

func ConsumedAtLTE(v time.Time) predicate.VerificationToken

ConsumedAtLTE applies the LTE predicate on the "consumed_at" field.

func ConsumedAtNEQ

func ConsumedAtNEQ(v time.Time) predicate.VerificationToken

ConsumedAtNEQ applies the NEQ predicate on the "consumed_at" field.

func ConsumedAtNotIn

func ConsumedAtNotIn(vs ...time.Time) predicate.VerificationToken

ConsumedAtNotIn applies the NotIn predicate on the "consumed_at" field.

func ConsumedAtNotNil

func ConsumedAtNotNil() predicate.VerificationToken

ConsumedAtNotNil applies the NotNil predicate on the "consumed_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.VerificationToken

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.VerificationToken

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.VerificationToken

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.VerificationToken

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.VerificationToken

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.VerificationToken

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.VerificationToken

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.VerificationToken

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.VerificationToken

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Data

Data applies equality check predicate on the "data" field. It's identical to DataEQ.

func DataEQ

func DataEQ(v []byte) predicate.VerificationToken

DataEQ applies the EQ predicate on the "data" field.

func DataGT

func DataGT(v []byte) predicate.VerificationToken

DataGT applies the GT predicate on the "data" field.

func DataGTE

func DataGTE(v []byte) predicate.VerificationToken

DataGTE applies the GTE predicate on the "data" field.

func DataIn

func DataIn(vs ...[]byte) predicate.VerificationToken

DataIn applies the In predicate on the "data" field.

func DataIsNil

func DataIsNil() predicate.VerificationToken

DataIsNil applies the IsNil predicate on the "data" field.

func DataLT

func DataLT(v []byte) predicate.VerificationToken

DataLT applies the LT predicate on the "data" field.

func DataLTE

func DataLTE(v []byte) predicate.VerificationToken

DataLTE applies the LTE predicate on the "data" field.

func DataNEQ

func DataNEQ(v []byte) predicate.VerificationToken

DataNEQ applies the NEQ predicate on the "data" field.

func DataNotIn

func DataNotIn(vs ...[]byte) predicate.VerificationToken

DataNotIn applies the NotIn predicate on the "data" field.

func DataNotNil

func DataNotNil() predicate.VerificationToken

DataNotNil applies the NotNil predicate on the "data" field.

func Email

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

func EmailContains

func EmailContains(v string) predicate.VerificationToken

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.VerificationToken

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

func EmailEQ

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.VerificationToken

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

func EmailGT

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

func EmailGTE

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.VerificationToken

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.VerificationToken

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

func EmailIn

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

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

func EmailLT

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

func EmailLTE

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

func EmailNEQ

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

func EmailNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.VerificationToken

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.VerificationToken

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.VerificationToken

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.VerificationToken

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.VerificationToken

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.VerificationToken

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.VerificationToken

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.VerificationToken

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.VerificationToken

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func PrincipalID

func PrincipalID(v uuid.UUID) predicate.VerificationToken

PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.

func PrincipalIDEQ

func PrincipalIDEQ(v uuid.UUID) predicate.VerificationToken

PrincipalIDEQ applies the EQ predicate on the "principal_id" field.

func PrincipalIDGT

func PrincipalIDGT(v uuid.UUID) predicate.VerificationToken

PrincipalIDGT applies the GT predicate on the "principal_id" field.

func PrincipalIDGTE

func PrincipalIDGTE(v uuid.UUID) predicate.VerificationToken

PrincipalIDGTE applies the GTE predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...uuid.UUID) predicate.VerificationToken

PrincipalIDIn applies the In predicate on the "principal_id" field.

func PrincipalIDIsNil

func PrincipalIDIsNil() predicate.VerificationToken

PrincipalIDIsNil applies the IsNil predicate on the "principal_id" field.

func PrincipalIDLT

func PrincipalIDLT(v uuid.UUID) predicate.VerificationToken

PrincipalIDLT applies the LT predicate on the "principal_id" field.

func PrincipalIDLTE

func PrincipalIDLTE(v uuid.UUID) predicate.VerificationToken

PrincipalIDLTE applies the LTE predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v uuid.UUID) predicate.VerificationToken

PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...uuid.UUID) predicate.VerificationToken

PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.

func PrincipalIDNotNil

func PrincipalIDNotNil() predicate.VerificationToken

PrincipalIDNotNil applies the NotNil predicate on the "principal_id" field.

func PurposeEQ

func PurposeEQ(v Purpose) predicate.VerificationToken

PurposeEQ applies the EQ predicate on the "purpose" field.

func PurposeIn

func PurposeIn(vs ...Purpose) predicate.VerificationToken

PurposeIn applies the In predicate on the "purpose" field.

func PurposeNEQ

func PurposeNEQ(v Purpose) predicate.VerificationToken

PurposeNEQ applies the NEQ predicate on the "purpose" field.

func PurposeNotIn

func PurposeNotIn(vs ...Purpose) predicate.VerificationToken

PurposeNotIn applies the NotIn predicate on the "purpose" field.

func PurposeValidator

func PurposeValidator(pu Purpose) error

PurposeValidator is a validator for the "purpose" field enum values. It is called by the builders before save.

func TokenHash

func TokenHash(v string) predicate.VerificationToken

TokenHash applies equality check predicate on the "token_hash" field. It's identical to TokenHashEQ.

func TokenHashContains

func TokenHashContains(v string) predicate.VerificationToken

TokenHashContains applies the Contains predicate on the "token_hash" field.

func TokenHashContainsFold

func TokenHashContainsFold(v string) predicate.VerificationToken

TokenHashContainsFold applies the ContainsFold predicate on the "token_hash" field.

func TokenHashEQ

func TokenHashEQ(v string) predicate.VerificationToken

TokenHashEQ applies the EQ predicate on the "token_hash" field.

func TokenHashEqualFold

func TokenHashEqualFold(v string) predicate.VerificationToken

TokenHashEqualFold applies the EqualFold predicate on the "token_hash" field.

func TokenHashGT

func TokenHashGT(v string) predicate.VerificationToken

TokenHashGT applies the GT predicate on the "token_hash" field.

func TokenHashGTE

func TokenHashGTE(v string) predicate.VerificationToken

TokenHashGTE applies the GTE predicate on the "token_hash" field.

func TokenHashHasPrefix

func TokenHashHasPrefix(v string) predicate.VerificationToken

TokenHashHasPrefix applies the HasPrefix predicate on the "token_hash" field.

func TokenHashHasSuffix

func TokenHashHasSuffix(v string) predicate.VerificationToken

TokenHashHasSuffix applies the HasSuffix predicate on the "token_hash" field.

func TokenHashIn

func TokenHashIn(vs ...string) predicate.VerificationToken

TokenHashIn applies the In predicate on the "token_hash" field.

func TokenHashLT

func TokenHashLT(v string) predicate.VerificationToken

TokenHashLT applies the LT predicate on the "token_hash" field.

func TokenHashLTE

func TokenHashLTE(v string) predicate.VerificationToken

TokenHashLTE applies the LTE predicate on the "token_hash" field.

func TokenHashNEQ

func TokenHashNEQ(v string) predicate.VerificationToken

TokenHashNEQ applies the NEQ predicate on the "token_hash" field.

func TokenHashNotIn

func TokenHashNotIn(vs ...string) predicate.VerificationToken

TokenHashNotIn applies the NotIn predicate on the "token_hash" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the VerificationToken queries.

func ByBinding

func ByBinding(opts ...sql.OrderTermOption) OrderOption

ByBinding orders the results by the binding field.

func ByConsumedAt

func ByConsumedAt(opts ...sql.OrderTermOption) OrderOption

ByConsumedAt orders the results by the consumed_at field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByEmail

func ByEmail(opts ...sql.OrderTermOption) OrderOption

ByEmail orders the results by the email field.

func ByExpiresAt

func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption

ByExpiresAt orders the results by the expires_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByPrincipalID

func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption

ByPrincipalID orders the results by the principal_id field.

func ByPurpose

func ByPurpose(opts ...sql.OrderTermOption) OrderOption

ByPurpose orders the results by the purpose field.

func ByTokenHash

func ByTokenHash(opts ...sql.OrderTermOption) OrderOption

ByTokenHash orders the results by the token_hash field.

type Purpose

type Purpose string

Purpose defines the type for the "purpose" enum field.

const (
	PurposeVerifyEmail Purpose = "verify_email"
	PurposeEmailChange Purpose = "email_change"
)

Purpose values.

func (Purpose) String

func (pu Purpose) String() string

Jump to

Keyboard shortcuts

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