Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Auth) predicate.Auth
- func CreatedAt(v time.Time) predicate.Auth
- func CreatedAtEQ(v time.Time) predicate.Auth
- func CreatedAtGT(v time.Time) predicate.Auth
- func CreatedAtGTE(v time.Time) predicate.Auth
- func CreatedAtIn(vs ...time.Time) predicate.Auth
- func CreatedAtLT(v time.Time) predicate.Auth
- func CreatedAtLTE(v time.Time) predicate.Auth
- func CreatedAtNEQ(v time.Time) predicate.Auth
- func CreatedAtNotIn(vs ...time.Time) predicate.Auth
- func ID(id int) predicate.Auth
- func IDEQ(id int) predicate.Auth
- func IDGT(id int) predicate.Auth
- func IDGTE(id int) predicate.Auth
- func IDIn(ids ...int) predicate.Auth
- func IDLT(id int) predicate.Auth
- func IDLTE(id int) predicate.Auth
- func IDNEQ(id int) predicate.Auth
- func IDNotIn(ids ...int) predicate.Auth
- func Not(p predicate.Auth) predicate.Auth
- func Or(predicates ...predicate.Auth) predicate.Auth
- func Provider(v string) predicate.Auth
- func ProviderContains(v string) predicate.Auth
- func ProviderContainsFold(v string) predicate.Auth
- func ProviderEQ(v string) predicate.Auth
- func ProviderEqualFold(v string) predicate.Auth
- func ProviderGT(v string) predicate.Auth
- func ProviderGTE(v string) predicate.Auth
- func ProviderHasPrefix(v string) predicate.Auth
- func ProviderHasSuffix(v string) predicate.Auth
- func ProviderIn(vs ...string) predicate.Auth
- func ProviderLT(v string) predicate.Auth
- func ProviderLTE(v string) predicate.Auth
- func ProviderNEQ(v string) predicate.Auth
- func ProviderNotIn(vs ...string) predicate.Auth
- func Status(v string) predicate.Auth
- func StatusContains(v string) predicate.Auth
- func StatusContainsFold(v string) predicate.Auth
- func StatusEQ(v string) predicate.Auth
- func StatusEqualFold(v string) predicate.Auth
- func StatusGT(v string) predicate.Auth
- func StatusGTE(v string) predicate.Auth
- func StatusHasPrefix(v string) predicate.Auth
- func StatusHasSuffix(v string) predicate.Auth
- func StatusIn(vs ...string) predicate.Auth
- func StatusLT(v string) predicate.Auth
- func StatusLTE(v string) predicate.Auth
- func StatusNEQ(v string) predicate.Auth
- func StatusNotIn(vs ...string) predicate.Auth
- func Token(v string) predicate.Auth
- func TokenContains(v string) predicate.Auth
- func TokenContainsFold(v string) predicate.Auth
- func TokenEQ(v string) predicate.Auth
- func TokenEqualFold(v string) predicate.Auth
- func TokenGT(v string) predicate.Auth
- func TokenGTE(v string) predicate.Auth
- func TokenHasPrefix(v string) predicate.Auth
- func TokenHasSuffix(v string) predicate.Auth
- func TokenIn(vs ...string) predicate.Auth
- func TokenLT(v string) predicate.Auth
- func TokenLTE(v string) predicate.Auth
- func TokenNEQ(v string) predicate.Auth
- func TokenNotIn(vs ...string) predicate.Auth
- func UpdatedAt(v time.Time) predicate.Auth
- func UpdatedAtEQ(v time.Time) predicate.Auth
- func UpdatedAtGT(v time.Time) predicate.Auth
- func UpdatedAtGTE(v time.Time) predicate.Auth
- func UpdatedAtIn(vs ...time.Time) predicate.Auth
- func UpdatedAtLT(v time.Time) predicate.Auth
- func UpdatedAtLTE(v time.Time) predicate.Auth
- func UpdatedAtNEQ(v time.Time) predicate.Auth
- func UpdatedAtNotIn(vs ...time.Time) predicate.Auth
- func UserID(v string) predicate.Auth
- func UserIDContains(v string) predicate.Auth
- func UserIDContainsFold(v string) predicate.Auth
- func UserIDEQ(v string) predicate.Auth
- func UserIDEqualFold(v string) predicate.Auth
- func UserIDGT(v string) predicate.Auth
- func UserIDGTE(v string) predicate.Auth
- func UserIDHasPrefix(v string) predicate.Auth
- func UserIDHasSuffix(v string) predicate.Auth
- func UserIDIn(vs ...string) predicate.Auth
- func UserIDLT(v string) predicate.Auth
- func UserIDLTE(v string) predicate.Auth
- func UserIDNEQ(v string) predicate.Auth
- func UserIDNotIn(vs ...string) predicate.Auth
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the auth type in the database. Label = "auth" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // Table holds the table name of the auth in the database. Table = "auths" )
Variables ¶
var ( // ProviderValidator is a validator for the "provider" field. It is called by the builders before save. ProviderValidator func(string) error // TokenValidator is a validator for the "token" field. It is called by the builders before save. TokenValidator func(string) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // 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 )
var Columns = []string{ FieldID, FieldUserID, FieldProvider, FieldToken, FieldStatus, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for auth fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Provider ¶
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
ProviderIn applies the In predicate on the "provider" field.
func ProviderLT ¶
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
ProviderNotIn applies the NotIn predicate on the "provider" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Auth queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByProvider ¶
func ByProvider(opts ...sql.OrderTermOption) OrderOption
ByProvider orders the results by the provider field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByToken ¶
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.