Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DeviceRequest) predicate.DeviceRequest
- func ClientID(v string) predicate.DeviceRequest
- func ClientIDContains(v string) predicate.DeviceRequest
- func ClientIDContainsFold(v string) predicate.DeviceRequest
- func ClientIDEQ(v string) predicate.DeviceRequest
- func ClientIDEqualFold(v string) predicate.DeviceRequest
- func ClientIDGT(v string) predicate.DeviceRequest
- func ClientIDGTE(v string) predicate.DeviceRequest
- func ClientIDHasPrefix(v string) predicate.DeviceRequest
- func ClientIDHasSuffix(v string) predicate.DeviceRequest
- func ClientIDIn(vs ...string) predicate.DeviceRequest
- func ClientIDLT(v string) predicate.DeviceRequest
- func ClientIDLTE(v string) predicate.DeviceRequest
- func ClientIDNEQ(v string) predicate.DeviceRequest
- func ClientIDNotIn(vs ...string) predicate.DeviceRequest
- func ClientSecret(v string) predicate.DeviceRequest
- func ClientSecretContains(v string) predicate.DeviceRequest
- func ClientSecretContainsFold(v string) predicate.DeviceRequest
- func ClientSecretEQ(v string) predicate.DeviceRequest
- func ClientSecretEqualFold(v string) predicate.DeviceRequest
- func ClientSecretGT(v string) predicate.DeviceRequest
- func ClientSecretGTE(v string) predicate.DeviceRequest
- func ClientSecretHasPrefix(v string) predicate.DeviceRequest
- func ClientSecretHasSuffix(v string) predicate.DeviceRequest
- func ClientSecretIn(vs ...string) predicate.DeviceRequest
- func ClientSecretLT(v string) predicate.DeviceRequest
- func ClientSecretLTE(v string) predicate.DeviceRequest
- func ClientSecretNEQ(v string) predicate.DeviceRequest
- func ClientSecretNotIn(vs ...string) predicate.DeviceRequest
- func DeviceCode(v string) predicate.DeviceRequest
- func DeviceCodeContains(v string) predicate.DeviceRequest
- func DeviceCodeContainsFold(v string) predicate.DeviceRequest
- func DeviceCodeEQ(v string) predicate.DeviceRequest
- func DeviceCodeEqualFold(v string) predicate.DeviceRequest
- func DeviceCodeGT(v string) predicate.DeviceRequest
- func DeviceCodeGTE(v string) predicate.DeviceRequest
- func DeviceCodeHasPrefix(v string) predicate.DeviceRequest
- func DeviceCodeHasSuffix(v string) predicate.DeviceRequest
- func DeviceCodeIn(vs ...string) predicate.DeviceRequest
- func DeviceCodeLT(v string) predicate.DeviceRequest
- func DeviceCodeLTE(v string) predicate.DeviceRequest
- func DeviceCodeNEQ(v string) predicate.DeviceRequest
- func DeviceCodeNotIn(vs ...string) predicate.DeviceRequest
- func Expiry(v time.Time) predicate.DeviceRequest
- func ExpiryEQ(v time.Time) predicate.DeviceRequest
- func ExpiryGT(v time.Time) predicate.DeviceRequest
- func ExpiryGTE(v time.Time) predicate.DeviceRequest
- func ExpiryIn(vs ...time.Time) predicate.DeviceRequest
- func ExpiryLT(v time.Time) predicate.DeviceRequest
- func ExpiryLTE(v time.Time) predicate.DeviceRequest
- func ExpiryNEQ(v time.Time) predicate.DeviceRequest
- func ExpiryNotIn(vs ...time.Time) predicate.DeviceRequest
- func ID(id int) predicate.DeviceRequest
- func IDEQ(id int) predicate.DeviceRequest
- func IDGT(id int) predicate.DeviceRequest
- func IDGTE(id int) predicate.DeviceRequest
- func IDIn(ids ...int) predicate.DeviceRequest
- func IDLT(id int) predicate.DeviceRequest
- func IDLTE(id int) predicate.DeviceRequest
- func IDNEQ(id int) predicate.DeviceRequest
- func IDNotIn(ids ...int) predicate.DeviceRequest
- func Not(p predicate.DeviceRequest) predicate.DeviceRequest
- func Or(predicates ...predicate.DeviceRequest) predicate.DeviceRequest
- func ScopesIsNil() predicate.DeviceRequest
- func ScopesNotNil() predicate.DeviceRequest
- func UserCode(v string) predicate.DeviceRequest
- func UserCodeContains(v string) predicate.DeviceRequest
- func UserCodeContainsFold(v string) predicate.DeviceRequest
- func UserCodeEQ(v string) predicate.DeviceRequest
- func UserCodeEqualFold(v string) predicate.DeviceRequest
- func UserCodeGT(v string) predicate.DeviceRequest
- func UserCodeGTE(v string) predicate.DeviceRequest
- func UserCodeHasPrefix(v string) predicate.DeviceRequest
- func UserCodeHasSuffix(v string) predicate.DeviceRequest
- func UserCodeIn(vs ...string) predicate.DeviceRequest
- func UserCodeLT(v string) predicate.DeviceRequest
- func UserCodeLTE(v string) predicate.DeviceRequest
- func UserCodeNEQ(v string) predicate.DeviceRequest
- func UserCodeNotIn(vs ...string) predicate.DeviceRequest
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the devicerequest type in the database. Label = "device_request" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserCode holds the string denoting the user_code field in the database. FieldUserCode = "user_code" // FieldDeviceCode holds the string denoting the device_code field in the database. FieldDeviceCode = "device_code" // FieldClientID holds the string denoting the client_id field in the database. FieldClientID = "client_id" // FieldClientSecret holds the string denoting the client_secret field in the database. FieldClientSecret = "client_secret" // FieldScopes holds the string denoting the scopes field in the database. FieldScopes = "scopes" // FieldExpiry holds the string denoting the expiry field in the database. FieldExpiry = "expiry" // Table holds the table name of the devicerequest in the database. Table = "device_requests" )
Variables ¶
var ( // UserCodeValidator is a validator for the "user_code" field. It is called by the builders before save. UserCodeValidator func(string) error // DeviceCodeValidator is a validator for the "device_code" field. It is called by the builders before save. DeviceCodeValidator func(string) error // ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save. ClientIDValidator func(string) error // ClientSecretValidator is a validator for the "client_secret" field. It is called by the builders before save. ClientSecretValidator func(string) error )
var Columns = []string{ FieldID, FieldUserCode, FieldDeviceCode, FieldClientID, FieldClientSecret, FieldScopes, FieldExpiry, }
Columns holds all SQL columns for devicerequest fields.
Functions ¶
func And ¶
func And(predicates ...predicate.DeviceRequest) predicate.DeviceRequest
And groups predicates with the AND operator between them.
func ClientID ¶
func ClientID(v string) predicate.DeviceRequest
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDContains ¶
func ClientIDContains(v string) predicate.DeviceRequest
ClientIDContains applies the Contains predicate on the "client_id" field.
func ClientIDContainsFold ¶
func ClientIDContainsFold(v string) predicate.DeviceRequest
ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.
func ClientIDEQ ¶
func ClientIDEQ(v string) predicate.DeviceRequest
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDEqualFold ¶
func ClientIDEqualFold(v string) predicate.DeviceRequest
ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.
func ClientIDGT ¶
func ClientIDGT(v string) predicate.DeviceRequest
ClientIDGT applies the GT predicate on the "client_id" field.
func ClientIDGTE ¶
func ClientIDGTE(v string) predicate.DeviceRequest
ClientIDGTE applies the GTE predicate on the "client_id" field.
func ClientIDHasPrefix ¶
func ClientIDHasPrefix(v string) predicate.DeviceRequest
ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.
func ClientIDHasSuffix ¶
func ClientIDHasSuffix(v string) predicate.DeviceRequest
ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.
func ClientIDIn ¶
func ClientIDIn(vs ...string) predicate.DeviceRequest
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDLT ¶
func ClientIDLT(v string) predicate.DeviceRequest
ClientIDLT applies the LT predicate on the "client_id" field.
func ClientIDLTE ¶
func ClientIDLTE(v string) predicate.DeviceRequest
ClientIDLTE applies the LTE predicate on the "client_id" field.
func ClientIDNEQ ¶
func ClientIDNEQ(v string) predicate.DeviceRequest
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
func ClientIDNotIn(vs ...string) predicate.DeviceRequest
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func ClientSecret ¶
func ClientSecret(v string) predicate.DeviceRequest
ClientSecret applies equality check predicate on the "client_secret" field. It's identical to ClientSecretEQ.
func ClientSecretContains ¶
func ClientSecretContains(v string) predicate.DeviceRequest
ClientSecretContains applies the Contains predicate on the "client_secret" field.
func ClientSecretContainsFold ¶
func ClientSecretContainsFold(v string) predicate.DeviceRequest
ClientSecretContainsFold applies the ContainsFold predicate on the "client_secret" field.
func ClientSecretEQ ¶
func ClientSecretEQ(v string) predicate.DeviceRequest
ClientSecretEQ applies the EQ predicate on the "client_secret" field.
func ClientSecretEqualFold ¶
func ClientSecretEqualFold(v string) predicate.DeviceRequest
ClientSecretEqualFold applies the EqualFold predicate on the "client_secret" field.
func ClientSecretGT ¶
func ClientSecretGT(v string) predicate.DeviceRequest
ClientSecretGT applies the GT predicate on the "client_secret" field.
func ClientSecretGTE ¶
func ClientSecretGTE(v string) predicate.DeviceRequest
ClientSecretGTE applies the GTE predicate on the "client_secret" field.
func ClientSecretHasPrefix ¶
func ClientSecretHasPrefix(v string) predicate.DeviceRequest
ClientSecretHasPrefix applies the HasPrefix predicate on the "client_secret" field.
func ClientSecretHasSuffix ¶
func ClientSecretHasSuffix(v string) predicate.DeviceRequest
ClientSecretHasSuffix applies the HasSuffix predicate on the "client_secret" field.
func ClientSecretIn ¶
func ClientSecretIn(vs ...string) predicate.DeviceRequest
ClientSecretIn applies the In predicate on the "client_secret" field.
func ClientSecretLT ¶
func ClientSecretLT(v string) predicate.DeviceRequest
ClientSecretLT applies the LT predicate on the "client_secret" field.
func ClientSecretLTE ¶
func ClientSecretLTE(v string) predicate.DeviceRequest
ClientSecretLTE applies the LTE predicate on the "client_secret" field.
func ClientSecretNEQ ¶
func ClientSecretNEQ(v string) predicate.DeviceRequest
ClientSecretNEQ applies the NEQ predicate on the "client_secret" field.
func ClientSecretNotIn ¶
func ClientSecretNotIn(vs ...string) predicate.DeviceRequest
ClientSecretNotIn applies the NotIn predicate on the "client_secret" field.
func DeviceCode ¶
func DeviceCode(v string) predicate.DeviceRequest
DeviceCode applies equality check predicate on the "device_code" field. It's identical to DeviceCodeEQ.
func DeviceCodeContains ¶
func DeviceCodeContains(v string) predicate.DeviceRequest
DeviceCodeContains applies the Contains predicate on the "device_code" field.
func DeviceCodeContainsFold ¶
func DeviceCodeContainsFold(v string) predicate.DeviceRequest
DeviceCodeContainsFold applies the ContainsFold predicate on the "device_code" field.
func DeviceCodeEQ ¶
func DeviceCodeEQ(v string) predicate.DeviceRequest
DeviceCodeEQ applies the EQ predicate on the "device_code" field.
func DeviceCodeEqualFold ¶
func DeviceCodeEqualFold(v string) predicate.DeviceRequest
DeviceCodeEqualFold applies the EqualFold predicate on the "device_code" field.
func DeviceCodeGT ¶
func DeviceCodeGT(v string) predicate.DeviceRequest
DeviceCodeGT applies the GT predicate on the "device_code" field.
func DeviceCodeGTE ¶
func DeviceCodeGTE(v string) predicate.DeviceRequest
DeviceCodeGTE applies the GTE predicate on the "device_code" field.
func DeviceCodeHasPrefix ¶
func DeviceCodeHasPrefix(v string) predicate.DeviceRequest
DeviceCodeHasPrefix applies the HasPrefix predicate on the "device_code" field.
func DeviceCodeHasSuffix ¶
func DeviceCodeHasSuffix(v string) predicate.DeviceRequest
DeviceCodeHasSuffix applies the HasSuffix predicate on the "device_code" field.
func DeviceCodeIn ¶
func DeviceCodeIn(vs ...string) predicate.DeviceRequest
DeviceCodeIn applies the In predicate on the "device_code" field.
func DeviceCodeLT ¶
func DeviceCodeLT(v string) predicate.DeviceRequest
DeviceCodeLT applies the LT predicate on the "device_code" field.
func DeviceCodeLTE ¶
func DeviceCodeLTE(v string) predicate.DeviceRequest
DeviceCodeLTE applies the LTE predicate on the "device_code" field.
func DeviceCodeNEQ ¶
func DeviceCodeNEQ(v string) predicate.DeviceRequest
DeviceCodeNEQ applies the NEQ predicate on the "device_code" field.
func DeviceCodeNotIn ¶
func DeviceCodeNotIn(vs ...string) predicate.DeviceRequest
DeviceCodeNotIn applies the NotIn predicate on the "device_code" field.
func Expiry ¶
func Expiry(v time.Time) predicate.DeviceRequest
Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.
func ExpiryEQ ¶
func ExpiryEQ(v time.Time) predicate.DeviceRequest
ExpiryEQ applies the EQ predicate on the "expiry" field.
func ExpiryGT ¶
func ExpiryGT(v time.Time) predicate.DeviceRequest
ExpiryGT applies the GT predicate on the "expiry" field.
func ExpiryGTE ¶
func ExpiryGTE(v time.Time) predicate.DeviceRequest
ExpiryGTE applies the GTE predicate on the "expiry" field.
func ExpiryIn ¶
func ExpiryIn(vs ...time.Time) predicate.DeviceRequest
ExpiryIn applies the In predicate on the "expiry" field.
func ExpiryLT ¶
func ExpiryLT(v time.Time) predicate.DeviceRequest
ExpiryLT applies the LT predicate on the "expiry" field.
func ExpiryLTE ¶
func ExpiryLTE(v time.Time) predicate.DeviceRequest
ExpiryLTE applies the LTE predicate on the "expiry" field.
func ExpiryNEQ ¶
func ExpiryNEQ(v time.Time) predicate.DeviceRequest
ExpiryNEQ applies the NEQ predicate on the "expiry" field.
func ExpiryNotIn ¶
func ExpiryNotIn(vs ...time.Time) predicate.DeviceRequest
ExpiryNotIn applies the NotIn predicate on the "expiry" field.
func IDEQ ¶
func IDEQ(id int) predicate.DeviceRequest
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.DeviceRequest
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.DeviceRequest
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.DeviceRequest
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.DeviceRequest
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.DeviceRequest
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.DeviceRequest
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.DeviceRequest
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.DeviceRequest) predicate.DeviceRequest
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.DeviceRequest) predicate.DeviceRequest
Or groups predicates with the OR operator between them.
func ScopesIsNil ¶
func ScopesIsNil() predicate.DeviceRequest
ScopesIsNil applies the IsNil predicate on the "scopes" field.
func ScopesNotNil ¶
func ScopesNotNil() predicate.DeviceRequest
ScopesNotNil applies the NotNil predicate on the "scopes" field.
func UserCode ¶
func UserCode(v string) predicate.DeviceRequest
UserCode applies equality check predicate on the "user_code" field. It's identical to UserCodeEQ.
func UserCodeContains ¶
func UserCodeContains(v string) predicate.DeviceRequest
UserCodeContains applies the Contains predicate on the "user_code" field.
func UserCodeContainsFold ¶
func UserCodeContainsFold(v string) predicate.DeviceRequest
UserCodeContainsFold applies the ContainsFold predicate on the "user_code" field.
func UserCodeEQ ¶
func UserCodeEQ(v string) predicate.DeviceRequest
UserCodeEQ applies the EQ predicate on the "user_code" field.
func UserCodeEqualFold ¶
func UserCodeEqualFold(v string) predicate.DeviceRequest
UserCodeEqualFold applies the EqualFold predicate on the "user_code" field.
func UserCodeGT ¶
func UserCodeGT(v string) predicate.DeviceRequest
UserCodeGT applies the GT predicate on the "user_code" field.
func UserCodeGTE ¶
func UserCodeGTE(v string) predicate.DeviceRequest
UserCodeGTE applies the GTE predicate on the "user_code" field.
func UserCodeHasPrefix ¶
func UserCodeHasPrefix(v string) predicate.DeviceRequest
UserCodeHasPrefix applies the HasPrefix predicate on the "user_code" field.
func UserCodeHasSuffix ¶
func UserCodeHasSuffix(v string) predicate.DeviceRequest
UserCodeHasSuffix applies the HasSuffix predicate on the "user_code" field.
func UserCodeIn ¶
func UserCodeIn(vs ...string) predicate.DeviceRequest
UserCodeIn applies the In predicate on the "user_code" field.
func UserCodeLT ¶
func UserCodeLT(v string) predicate.DeviceRequest
UserCodeLT applies the LT predicate on the "user_code" field.
func UserCodeLTE ¶
func UserCodeLTE(v string) predicate.DeviceRequest
UserCodeLTE applies the LTE predicate on the "user_code" field.
func UserCodeNEQ ¶
func UserCodeNEQ(v string) predicate.DeviceRequest
UserCodeNEQ applies the NEQ predicate on the "user_code" field.
func UserCodeNotIn ¶
func UserCodeNotIn(vs ...string) predicate.DeviceRequest
UserCodeNotIn applies the NotIn predicate on the "user_code" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.