Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AuthAttempt) predicate.AuthAttempt
- func CreatedAt(v time.Time) predicate.AuthAttempt
- func CreatedAtEQ(v time.Time) predicate.AuthAttempt
- func CreatedAtGT(v time.Time) predicate.AuthAttempt
- func CreatedAtGTE(v time.Time) predicate.AuthAttempt
- func CreatedAtIn(vs ...time.Time) predicate.AuthAttempt
- func CreatedAtLT(v time.Time) predicate.AuthAttempt
- func CreatedAtLTE(v time.Time) predicate.AuthAttempt
- func CreatedAtNEQ(v time.Time) predicate.AuthAttempt
- func CreatedAtNotIn(vs ...time.Time) predicate.AuthAttempt
- func Email(v string) predicate.AuthAttempt
- func EmailContains(v string) predicate.AuthAttempt
- func EmailContainsFold(v string) predicate.AuthAttempt
- func EmailEQ(v string) predicate.AuthAttempt
- func EmailEqualFold(v string) predicate.AuthAttempt
- func EmailGT(v string) predicate.AuthAttempt
- func EmailGTE(v string) predicate.AuthAttempt
- func EmailHasPrefix(v string) predicate.AuthAttempt
- func EmailHasSuffix(v string) predicate.AuthAttempt
- func EmailIn(vs ...string) predicate.AuthAttempt
- func EmailLT(v string) predicate.AuthAttempt
- func EmailLTE(v string) predicate.AuthAttempt
- func EmailNEQ(v string) predicate.AuthAttempt
- func EmailNotIn(vs ...string) predicate.AuthAttempt
- func Failures(v int) predicate.AuthAttempt
- func FailuresEQ(v int) predicate.AuthAttempt
- func FailuresGT(v int) predicate.AuthAttempt
- func FailuresGTE(v int) predicate.AuthAttempt
- func FailuresIn(vs ...int) predicate.AuthAttempt
- func FailuresLT(v int) predicate.AuthAttempt
- func FailuresLTE(v int) predicate.AuthAttempt
- func FailuresNEQ(v int) predicate.AuthAttempt
- func FailuresNotIn(vs ...int) predicate.AuthAttempt
- func ID(id int64) predicate.AuthAttempt
- func IDEQ(id int64) predicate.AuthAttempt
- func IDGT(id int64) predicate.AuthAttempt
- func IDGTE(id int64) predicate.AuthAttempt
- func IDIn(ids ...int64) predicate.AuthAttempt
- func IDLT(id int64) predicate.AuthAttempt
- func IDLTE(id int64) predicate.AuthAttempt
- func IDNEQ(id int64) predicate.AuthAttempt
- func IDNotIn(ids ...int64) predicate.AuthAttempt
- func KindEQ(v Kind) predicate.AuthAttempt
- func KindIn(vs ...Kind) predicate.AuthAttempt
- func KindNEQ(v Kind) predicate.AuthAttempt
- func KindNotIn(vs ...Kind) predicate.AuthAttempt
- func KindValidator(k Kind) error
- func LastAttemptAt(v time.Time) predicate.AuthAttempt
- func LastAttemptAtEQ(v time.Time) predicate.AuthAttempt
- func LastAttemptAtGT(v time.Time) predicate.AuthAttempt
- func LastAttemptAtGTE(v time.Time) predicate.AuthAttempt
- func LastAttemptAtIn(vs ...time.Time) predicate.AuthAttempt
- func LastAttemptAtLT(v time.Time) predicate.AuthAttempt
- func LastAttemptAtLTE(v time.Time) predicate.AuthAttempt
- func LastAttemptAtNEQ(v time.Time) predicate.AuthAttempt
- func LastAttemptAtNotIn(vs ...time.Time) predicate.AuthAttempt
- func Not(p predicate.AuthAttempt) predicate.AuthAttempt
- func Or(predicates ...predicate.AuthAttempt) predicate.AuthAttempt
- func UpdatedAt(v time.Time) predicate.AuthAttempt
- func UpdatedAtEQ(v time.Time) predicate.AuthAttempt
- func UpdatedAtGT(v time.Time) predicate.AuthAttempt
- func UpdatedAtGTE(v time.Time) predicate.AuthAttempt
- func UpdatedAtIn(vs ...time.Time) predicate.AuthAttempt
- func UpdatedAtLT(v time.Time) predicate.AuthAttempt
- func UpdatedAtLTE(v time.Time) predicate.AuthAttempt
- func UpdatedAtNEQ(v time.Time) predicate.AuthAttempt
- func UpdatedAtNotIn(vs ...time.Time) predicate.AuthAttempt
- func ValidColumn(column string) bool
- type Kind
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFailures(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByLastAttemptAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldEmail, FieldKind, FieldFailures, FieldLastAttemptAt, }
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 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 ¶
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 ¶
func Not(p predicate.AuthAttempt) predicate.AuthAttempt
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 ¶
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.
type OrderOption ¶
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.