Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Authentication) predicate.Authentication
- func CreatedAt(v time.Time) predicate.Authentication
- func CreatedAtEQ(v time.Time) predicate.Authentication
- func CreatedAtGT(v time.Time) predicate.Authentication
- func CreatedAtGTE(v time.Time) predicate.Authentication
- func CreatedAtIn(vs ...time.Time) predicate.Authentication
- func CreatedAtLT(v time.Time) predicate.Authentication
- func CreatedAtLTE(v time.Time) predicate.Authentication
- func CreatedAtNEQ(v time.Time) predicate.Authentication
- func CreatedAtNotIn(vs ...time.Time) predicate.Authentication
- func HasAccount() predicate.Authentication
- func HasAccountWith(preds ...predicate.Account) predicate.Authentication
- func ID(id xid.ID) predicate.Authentication
- func IDEQ(id xid.ID) predicate.Authentication
- func IDGT(id xid.ID) predicate.Authentication
- func IDGTE(id xid.ID) predicate.Authentication
- func IDIn(ids ...xid.ID) predicate.Authentication
- func IDLT(id xid.ID) predicate.Authentication
- func IDLTE(id xid.ID) predicate.Authentication
- func IDNEQ(id xid.ID) predicate.Authentication
- func IDNotIn(ids ...xid.ID) predicate.Authentication
- func Identifier(v string) predicate.Authentication
- func IdentifierContains(v string) predicate.Authentication
- func IdentifierContainsFold(v string) predicate.Authentication
- func IdentifierEQ(v string) predicate.Authentication
- func IdentifierEqualFold(v string) predicate.Authentication
- func IdentifierGT(v string) predicate.Authentication
- func IdentifierGTE(v string) predicate.Authentication
- func IdentifierHasPrefix(v string) predicate.Authentication
- func IdentifierHasSuffix(v string) predicate.Authentication
- func IdentifierIn(vs ...string) predicate.Authentication
- func IdentifierLT(v string) predicate.Authentication
- func IdentifierLTE(v string) predicate.Authentication
- func IdentifierNEQ(v string) predicate.Authentication
- func IdentifierNotIn(vs ...string) predicate.Authentication
- func MetadataIsNil() predicate.Authentication
- func MetadataNotNil() predicate.Authentication
- func Not(p predicate.Authentication) predicate.Authentication
- func Or(predicates ...predicate.Authentication) predicate.Authentication
- func Service(v string) predicate.Authentication
- func ServiceContains(v string) predicate.Authentication
- func ServiceContainsFold(v string) predicate.Authentication
- func ServiceEQ(v string) predicate.Authentication
- func ServiceEqualFold(v string) predicate.Authentication
- func ServiceGT(v string) predicate.Authentication
- func ServiceGTE(v string) predicate.Authentication
- func ServiceHasPrefix(v string) predicate.Authentication
- func ServiceHasSuffix(v string) predicate.Authentication
- func ServiceIn(vs ...string) predicate.Authentication
- func ServiceLT(v string) predicate.Authentication
- func ServiceLTE(v string) predicate.Authentication
- func ServiceNEQ(v string) predicate.Authentication
- func ServiceNotIn(vs ...string) predicate.Authentication
- func Token(v string) predicate.Authentication
- func TokenContains(v string) predicate.Authentication
- func TokenContainsFold(v string) predicate.Authentication
- func TokenEQ(v string) predicate.Authentication
- func TokenEqualFold(v string) predicate.Authentication
- func TokenGT(v string) predicate.Authentication
- func TokenGTE(v string) predicate.Authentication
- func TokenHasPrefix(v string) predicate.Authentication
- func TokenHasSuffix(v string) predicate.Authentication
- func TokenIn(vs ...string) predicate.Authentication
- func TokenLT(v string) predicate.Authentication
- func TokenLTE(v string) predicate.Authentication
- func TokenNEQ(v string) predicate.Authentication
- func TokenNotIn(vs ...string) predicate.Authentication
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the authentication type in the database. Label = "authentication" // 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" // FieldService holds the string denoting the service field in the database. FieldService = "service" // FieldIdentifier holds the string denoting the identifier field in the database. FieldIdentifier = "identifier" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // Table holds the table name of the authentication in the database. Table = "authentications" // AccountTable is the table that holds the account relation/edge. AccountTable = "authentications" // AccountInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountInverseTable = "accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "account_authentication" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // ServiceValidator is a validator for the "service" field. It is called by the builders before save. ServiceValidator func(string) error // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() xid.ID // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldService, FieldIdentifier, FieldToken, FieldMetadata, }
Columns holds all SQL columns for authentication fields.
var ForeignKeys = []string{
"account_authentication",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "authentications" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Authentication) predicate.Authentication
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Authentication
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Authentication
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Authentication
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Authentication
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Authentication
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Authentication
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Authentication
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Authentication
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Authentication
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasAccount ¶
func HasAccount() predicate.Authentication
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
func HasAccountWith(preds ...predicate.Account) predicate.Authentication
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id xid.ID) predicate.Authentication
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id xid.ID) predicate.Authentication
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id xid.ID) predicate.Authentication
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...xid.ID) predicate.Authentication
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id xid.ID) predicate.Authentication
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id xid.ID) predicate.Authentication
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id xid.ID) predicate.Authentication
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...xid.ID) predicate.Authentication
IDNotIn applies the NotIn predicate on the ID field.
func Identifier ¶
func Identifier(v string) predicate.Authentication
Identifier applies equality check predicate on the "identifier" field. It's identical to IdentifierEQ.
func IdentifierContains ¶
func IdentifierContains(v string) predicate.Authentication
IdentifierContains applies the Contains predicate on the "identifier" field.
func IdentifierContainsFold ¶
func IdentifierContainsFold(v string) predicate.Authentication
IdentifierContainsFold applies the ContainsFold predicate on the "identifier" field.
func IdentifierEQ ¶
func IdentifierEQ(v string) predicate.Authentication
IdentifierEQ applies the EQ predicate on the "identifier" field.
func IdentifierEqualFold ¶
func IdentifierEqualFold(v string) predicate.Authentication
IdentifierEqualFold applies the EqualFold predicate on the "identifier" field.
func IdentifierGT ¶
func IdentifierGT(v string) predicate.Authentication
IdentifierGT applies the GT predicate on the "identifier" field.
func IdentifierGTE ¶
func IdentifierGTE(v string) predicate.Authentication
IdentifierGTE applies the GTE predicate on the "identifier" field.
func IdentifierHasPrefix ¶
func IdentifierHasPrefix(v string) predicate.Authentication
IdentifierHasPrefix applies the HasPrefix predicate on the "identifier" field.
func IdentifierHasSuffix ¶
func IdentifierHasSuffix(v string) predicate.Authentication
IdentifierHasSuffix applies the HasSuffix predicate on the "identifier" field.
func IdentifierIn ¶
func IdentifierIn(vs ...string) predicate.Authentication
IdentifierIn applies the In predicate on the "identifier" field.
func IdentifierLT ¶
func IdentifierLT(v string) predicate.Authentication
IdentifierLT applies the LT predicate on the "identifier" field.
func IdentifierLTE ¶
func IdentifierLTE(v string) predicate.Authentication
IdentifierLTE applies the LTE predicate on the "identifier" field.
func IdentifierNEQ ¶
func IdentifierNEQ(v string) predicate.Authentication
IdentifierNEQ applies the NEQ predicate on the "identifier" field.
func IdentifierNotIn ¶
func IdentifierNotIn(vs ...string) predicate.Authentication
IdentifierNotIn applies the NotIn predicate on the "identifier" field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.Authentication
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.Authentication
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Not ¶
func Not(p predicate.Authentication) predicate.Authentication
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Authentication) predicate.Authentication
Or groups predicates with the OR operator between them.
func Service ¶
func Service(v string) predicate.Authentication
Service applies equality check predicate on the "service" field. It's identical to ServiceEQ.
func ServiceContains ¶
func ServiceContains(v string) predicate.Authentication
ServiceContains applies the Contains predicate on the "service" field.
func ServiceContainsFold ¶
func ServiceContainsFold(v string) predicate.Authentication
ServiceContainsFold applies the ContainsFold predicate on the "service" field.
func ServiceEQ ¶
func ServiceEQ(v string) predicate.Authentication
ServiceEQ applies the EQ predicate on the "service" field.
func ServiceEqualFold ¶
func ServiceEqualFold(v string) predicate.Authentication
ServiceEqualFold applies the EqualFold predicate on the "service" field.
func ServiceGT ¶
func ServiceGT(v string) predicate.Authentication
ServiceGT applies the GT predicate on the "service" field.
func ServiceGTE ¶
func ServiceGTE(v string) predicate.Authentication
ServiceGTE applies the GTE predicate on the "service" field.
func ServiceHasPrefix ¶
func ServiceHasPrefix(v string) predicate.Authentication
ServiceHasPrefix applies the HasPrefix predicate on the "service" field.
func ServiceHasSuffix ¶
func ServiceHasSuffix(v string) predicate.Authentication
ServiceHasSuffix applies the HasSuffix predicate on the "service" field.
func ServiceIn ¶
func ServiceIn(vs ...string) predicate.Authentication
ServiceIn applies the In predicate on the "service" field.
func ServiceLT ¶
func ServiceLT(v string) predicate.Authentication
ServiceLT applies the LT predicate on the "service" field.
func ServiceLTE ¶
func ServiceLTE(v string) predicate.Authentication
ServiceLTE applies the LTE predicate on the "service" field.
func ServiceNEQ ¶
func ServiceNEQ(v string) predicate.Authentication
ServiceNEQ applies the NEQ predicate on the "service" field.
func ServiceNotIn ¶
func ServiceNotIn(vs ...string) predicate.Authentication
ServiceNotIn applies the NotIn predicate on the "service" field.
func Token ¶
func Token(v string) predicate.Authentication
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
func TokenContains(v string) predicate.Authentication
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
func TokenContainsFold(v string) predicate.Authentication
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEQ ¶
func TokenEQ(v string) predicate.Authentication
TokenEQ applies the EQ predicate on the "token" field.
func TokenEqualFold ¶
func TokenEqualFold(v string) predicate.Authentication
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenGT ¶
func TokenGT(v string) predicate.Authentication
TokenGT applies the GT predicate on the "token" field.
func TokenGTE ¶
func TokenGTE(v string) predicate.Authentication
TokenGTE applies the GTE predicate on the "token" field.
func TokenHasPrefix ¶
func TokenHasPrefix(v string) predicate.Authentication
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
func TokenHasSuffix(v string) predicate.Authentication
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenIn ¶
func TokenIn(vs ...string) predicate.Authentication
TokenIn applies the In predicate on the "token" field.
func TokenLT ¶
func TokenLT(v string) predicate.Authentication
TokenLT applies the LT predicate on the "token" field.
func TokenLTE ¶
func TokenLTE(v string) predicate.Authentication
TokenLTE applies the LTE predicate on the "token" field.
func TokenNEQ ¶
func TokenNEQ(v string) predicate.Authentication
TokenNEQ applies the NEQ predicate on the "token" field.
func TokenNotIn ¶
func TokenNotIn(vs ...string) predicate.Authentication
TokenNotIn applies the NotIn predicate on the "token" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.