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

authattempt

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the authattempt type in the database.
	Label = "auth_attempt"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldFailures holds the string denoting the failures field in the database.
	FieldFailures = "failures"
	// FieldLastAttemptAt holds the string denoting the last_attempt_at field in the database.
	FieldLastAttemptAt = "last_attempt_at"
	// Table holds the table name of the authattempt in the database.
	Table = "auth_attempts"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// DefaultFailures holds the default value on creation for the "failures" field.
	DefaultFailures int
)

Columns holds all SQL columns for authattempt fields.

Functions

func And

func And(predicates ...predicate.AuthAttempt) predicate.AuthAttempt

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.AuthAttempt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AuthAttempt

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AuthAttempt

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AuthAttempt

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AuthAttempt

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AuthAttempt

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AuthAttempt

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

func CreatedAtNotIn

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

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

func Email

func Email(v string) predicate.AuthAttempt

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

func EmailContains

func EmailContains(v string) predicate.AuthAttempt

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.AuthAttempt

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

func EmailEQ

func EmailEQ(v string) predicate.AuthAttempt

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.AuthAttempt

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

func EmailGT

func EmailGT(v string) predicate.AuthAttempt

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

func EmailGTE

func EmailGTE(v string) predicate.AuthAttempt

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.AuthAttempt

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.AuthAttempt

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.AuthAttempt

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

func EmailLTE

func EmailLTE(v string) predicate.AuthAttempt

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

func EmailNEQ

func EmailNEQ(v string) predicate.AuthAttempt

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

func EmailNotIn

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

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

func Failures

func Failures(v int) predicate.AuthAttempt

Failures applies equality check predicate on the "failures" field. It's identical to FailuresEQ.

func FailuresEQ

func FailuresEQ(v int) predicate.AuthAttempt

FailuresEQ applies the EQ predicate on the "failures" field.

func FailuresGT

func FailuresGT(v int) predicate.AuthAttempt

FailuresGT applies the GT predicate on the "failures" field.

func FailuresGTE

func FailuresGTE(v int) predicate.AuthAttempt

FailuresGTE applies the GTE predicate on the "failures" field.

func FailuresIn

func FailuresIn(vs ...int) predicate.AuthAttempt

FailuresIn applies the In predicate on the "failures" field.

func FailuresLT

func FailuresLT(v int) predicate.AuthAttempt

FailuresLT applies the LT predicate on the "failures" field.

func FailuresLTE

func FailuresLTE(v int) predicate.AuthAttempt

FailuresLTE applies the LTE predicate on the "failures" field.

func FailuresNEQ

func FailuresNEQ(v int) predicate.AuthAttempt

FailuresNEQ applies the NEQ predicate on the "failures" field.

func FailuresNotIn

func FailuresNotIn(vs ...int) predicate.AuthAttempt

FailuresNotIn applies the NotIn predicate on the "failures" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.AuthAttempt

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.AuthAttempt

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.AuthAttempt

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.AuthAttempt

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.AuthAttempt

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.AuthAttempt

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.AuthAttempt

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.AuthAttempt

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.AuthAttempt

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.AuthAttempt

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.AuthAttempt

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.AuthAttempt

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

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

func LastAttemptAt

func LastAttemptAt(v time.Time) predicate.AuthAttempt

LastAttemptAt applies equality check predicate on the "last_attempt_at" field. It's identical to LastAttemptAtEQ.

func LastAttemptAtEQ

func LastAttemptAtEQ(v time.Time) predicate.AuthAttempt

LastAttemptAtEQ applies the EQ predicate on the "last_attempt_at" field.

func LastAttemptAtGT

func LastAttemptAtGT(v time.Time) predicate.AuthAttempt

LastAttemptAtGT applies the GT predicate on the "last_attempt_at" field.

func LastAttemptAtGTE

func LastAttemptAtGTE(v time.Time) predicate.AuthAttempt

LastAttemptAtGTE applies the GTE predicate on the "last_attempt_at" field.

func LastAttemptAtIn

func LastAttemptAtIn(vs ...time.Time) predicate.AuthAttempt

LastAttemptAtIn applies the In predicate on the "last_attempt_at" field.

func LastAttemptAtLT

func LastAttemptAtLT(v time.Time) predicate.AuthAttempt

LastAttemptAtLT applies the LT predicate on the "last_attempt_at" field.

func LastAttemptAtLTE

func LastAttemptAtLTE(v time.Time) predicate.AuthAttempt

LastAttemptAtLTE applies the LTE predicate on the "last_attempt_at" field.

func LastAttemptAtNEQ

func LastAttemptAtNEQ(v time.Time) predicate.AuthAttempt

LastAttemptAtNEQ applies the NEQ predicate on the "last_attempt_at" field.

func LastAttemptAtNotIn

func LastAttemptAtNotIn(vs ...time.Time) predicate.AuthAttempt

LastAttemptAtNotIn applies the NotIn predicate on the "last_attempt_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AuthAttempt) predicate.AuthAttempt

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AuthAttempt

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AuthAttempt

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AuthAttempt

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AuthAttempt

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.AuthAttempt

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AuthAttempt

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AuthAttempt

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AuthAttempt

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.AuthAttempt

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindLogin             Kind = "login"
	KindStaffLogin        Kind = "staff_login"
	KindPasswordReset     Kind = "password_reset"
	KindRegister          Kind = "register"
	KindEmailChange       Kind = "email_change"
	KindTestSendUser      Kind = "test_send_user"
	KindTestSendWorkspace Kind = "test_send_workspace"
)

Kind values.

func (Kind) String

func (k Kind) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the AuthAttempt queries.

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 ByFailures

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

ByFailures orders the results by the failures field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByLastAttemptAt

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

ByLastAttemptAt orders the results by the last_attempt_at field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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