Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OAuthCode) predicate.OAuthCode
- func ClientID(v int64) predicate.OAuthCode
- func ClientIDEQ(v int64) predicate.OAuthCode
- func ClientIDIn(vs ...int64) predicate.OAuthCode
- func ClientIDNEQ(v int64) predicate.OAuthCode
- func ClientIDNotIn(vs ...int64) predicate.OAuthCode
- func CodeChallenge(v string) predicate.OAuthCode
- func CodeChallengeContains(v string) predicate.OAuthCode
- func CodeChallengeContainsFold(v string) predicate.OAuthCode
- func CodeChallengeEQ(v string) predicate.OAuthCode
- func CodeChallengeEqualFold(v string) predicate.OAuthCode
- func CodeChallengeGT(v string) predicate.OAuthCode
- func CodeChallengeGTE(v string) predicate.OAuthCode
- func CodeChallengeHasPrefix(v string) predicate.OAuthCode
- func CodeChallengeHasSuffix(v string) predicate.OAuthCode
- func CodeChallengeIn(vs ...string) predicate.OAuthCode
- func CodeChallengeLT(v string) predicate.OAuthCode
- func CodeChallengeLTE(v string) predicate.OAuthCode
- func CodeChallengeMethod(v string) predicate.OAuthCode
- func CodeChallengeMethodContains(v string) predicate.OAuthCode
- func CodeChallengeMethodContainsFold(v string) predicate.OAuthCode
- func CodeChallengeMethodEQ(v string) predicate.OAuthCode
- func CodeChallengeMethodEqualFold(v string) predicate.OAuthCode
- func CodeChallengeMethodGT(v string) predicate.OAuthCode
- func CodeChallengeMethodGTE(v string) predicate.OAuthCode
- func CodeChallengeMethodHasPrefix(v string) predicate.OAuthCode
- func CodeChallengeMethodHasSuffix(v string) predicate.OAuthCode
- func CodeChallengeMethodIn(vs ...string) predicate.OAuthCode
- func CodeChallengeMethodLT(v string) predicate.OAuthCode
- func CodeChallengeMethodLTE(v string) predicate.OAuthCode
- func CodeChallengeMethodNEQ(v string) predicate.OAuthCode
- func CodeChallengeMethodNotIn(vs ...string) predicate.OAuthCode
- func CodeChallengeNEQ(v string) predicate.OAuthCode
- func CodeChallengeNotIn(vs ...string) predicate.OAuthCode
- func CodeHash(v string) predicate.OAuthCode
- func CodeHashContains(v string) predicate.OAuthCode
- func CodeHashContainsFold(v string) predicate.OAuthCode
- func CodeHashEQ(v string) predicate.OAuthCode
- func CodeHashEqualFold(v string) predicate.OAuthCode
- func CodeHashGT(v string) predicate.OAuthCode
- func CodeHashGTE(v string) predicate.OAuthCode
- func CodeHashHasPrefix(v string) predicate.OAuthCode
- func CodeHashHasSuffix(v string) predicate.OAuthCode
- func CodeHashIn(vs ...string) predicate.OAuthCode
- func CodeHashLT(v string) predicate.OAuthCode
- func CodeHashLTE(v string) predicate.OAuthCode
- func CodeHashNEQ(v string) predicate.OAuthCode
- func CodeHashNotIn(vs ...string) predicate.OAuthCode
- func ExpiresAt(v time.Time) predicate.OAuthCode
- func ExpiresAtEQ(v time.Time) predicate.OAuthCode
- func ExpiresAtGT(v time.Time) predicate.OAuthCode
- func ExpiresAtGTE(v time.Time) predicate.OAuthCode
- func ExpiresAtIn(vs ...time.Time) predicate.OAuthCode
- func ExpiresAtLT(v time.Time) predicate.OAuthCode
- func ExpiresAtLTE(v time.Time) predicate.OAuthCode
- func ExpiresAtNEQ(v time.Time) predicate.OAuthCode
- func ExpiresAtNotIn(vs ...time.Time) predicate.OAuthCode
- func HasClient() predicate.OAuthCode
- func HasClientWith(preds ...predicate.OAuthClient) predicate.OAuthCode
- func HasUser() predicate.OAuthCode
- func HasUserWith(preds ...predicate.User) predicate.OAuthCode
- func ID(id int64) predicate.OAuthCode
- func IDEQ(id int64) predicate.OAuthCode
- func IDGT(id int64) predicate.OAuthCode
- func IDGTE(id int64) predicate.OAuthCode
- func IDIn(ids ...int64) predicate.OAuthCode
- func IDLT(id int64) predicate.OAuthCode
- func IDLTE(id int64) predicate.OAuthCode
- func IDNEQ(id int64) predicate.OAuthCode
- func IDNotIn(ids ...int64) predicate.OAuthCode
- func Not(p predicate.OAuthCode) predicate.OAuthCode
- func Or(predicates ...predicate.OAuthCode) predicate.OAuthCode
- func RedirectURI(v string) predicate.OAuthCode
- func RedirectURIContains(v string) predicate.OAuthCode
- func RedirectURIContainsFold(v string) predicate.OAuthCode
- func RedirectURIEQ(v string) predicate.OAuthCode
- func RedirectURIEqualFold(v string) predicate.OAuthCode
- func RedirectURIGT(v string) predicate.OAuthCode
- func RedirectURIGTE(v string) predicate.OAuthCode
- func RedirectURIHasPrefix(v string) predicate.OAuthCode
- func RedirectURIHasSuffix(v string) predicate.OAuthCode
- func RedirectURIIn(vs ...string) predicate.OAuthCode
- func RedirectURILT(v string) predicate.OAuthCode
- func RedirectURILTE(v string) predicate.OAuthCode
- func RedirectURINEQ(v string) predicate.OAuthCode
- func RedirectURINotIn(vs ...string) predicate.OAuthCode
- func UserID(v int64) predicate.OAuthCode
- func UserIDEQ(v int64) predicate.OAuthCode
- func UserIDIn(vs ...int64) predicate.OAuthCode
- func UserIDNEQ(v int64) predicate.OAuthCode
- func UserIDNotIn(vs ...int64) predicate.OAuthCode
- func ValidColumn(column string) bool
- type OrderOption
- func ByClientField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByClientID(opts ...sql.OrderTermOption) OrderOption
- func ByCodeChallenge(opts ...sql.OrderTermOption) OrderOption
- func ByCodeChallengeMethod(opts ...sql.OrderTermOption) OrderOption
- func ByCodeHash(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the oauthcode type in the database. Label = "oauth_code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCodeHash holds the string denoting the code_hash field in the database. FieldCodeHash = "code_hash" // FieldClientID holds the string denoting the client_id field in the database. FieldClientID = "client_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRedirectURI holds the string denoting the redirect_uri field in the database. FieldRedirectURI = "redirect_uri" // FieldScopes holds the string denoting the scopes field in the database. FieldScopes = "scopes" // FieldCodeChallenge holds the string denoting the code_challenge field in the database. FieldCodeChallenge = "code_challenge" // FieldCodeChallengeMethod holds the string denoting the code_challenge_method field in the database. FieldCodeChallengeMethod = "code_challenge_method" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeClient holds the string denoting the client edge name in mutations. EdgeClient = "client" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the oauthcode in the database. Table = "oauth_codes" // ClientTable is the table that holds the client relation/edge. ClientTable = "oauth_codes" // ClientInverseTable is the table name for the OAuthClient entity. // It exists in this package in order to avoid circular dependency with the "oauthclient" package. ClientInverseTable = "oauth_clients" // ClientColumn is the table column denoting the client relation/edge. ClientColumn = "client_id" // UserTable is the table that holds the user relation/edge. UserTable = "oauth_codes" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var ( // CodeHashValidator is a validator for the "code_hash" field. It is called by the builders before save. CodeHashValidator func(string) error // RedirectURIValidator is a validator for the "redirect_uri" field. It is called by the builders before save. RedirectURIValidator func(string) error // DefaultCodeChallenge holds the default value on creation for the "code_challenge" field. DefaultCodeChallenge string // CodeChallengeValidator is a validator for the "code_challenge" field. It is called by the builders before save. CodeChallengeValidator func(string) error // DefaultCodeChallengeMethod holds the default value on creation for the "code_challenge_method" field. DefaultCodeChallengeMethod string // CodeChallengeMethodValidator is a validator for the "code_challenge_method" field. It is called by the builders before save. CodeChallengeMethodValidator func(string) error )
var Columns = []string{ FieldID, FieldCodeHash, FieldClientID, FieldUserID, FieldRedirectURI, FieldScopes, FieldCodeChallenge, FieldCodeChallengeMethod, FieldExpiresAt, }
Columns holds all SQL columns for oauthcode fields.
Functions ¶
func ClientID ¶
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDEQ ¶
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDIn ¶
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDNEQ ¶
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func CodeChallenge ¶
CodeChallenge applies equality check predicate on the "code_challenge" field. It's identical to CodeChallengeEQ.
func CodeChallengeContains ¶
CodeChallengeContains applies the Contains predicate on the "code_challenge" field.
func CodeChallengeContainsFold ¶
CodeChallengeContainsFold applies the ContainsFold predicate on the "code_challenge" field.
func CodeChallengeEQ ¶
CodeChallengeEQ applies the EQ predicate on the "code_challenge" field.
func CodeChallengeEqualFold ¶
CodeChallengeEqualFold applies the EqualFold predicate on the "code_challenge" field.
func CodeChallengeGT ¶
CodeChallengeGT applies the GT predicate on the "code_challenge" field.
func CodeChallengeGTE ¶
CodeChallengeGTE applies the GTE predicate on the "code_challenge" field.
func CodeChallengeHasPrefix ¶
CodeChallengeHasPrefix applies the HasPrefix predicate on the "code_challenge" field.
func CodeChallengeHasSuffix ¶
CodeChallengeHasSuffix applies the HasSuffix predicate on the "code_challenge" field.
func CodeChallengeIn ¶
CodeChallengeIn applies the In predicate on the "code_challenge" field.
func CodeChallengeLT ¶
CodeChallengeLT applies the LT predicate on the "code_challenge" field.
func CodeChallengeLTE ¶
CodeChallengeLTE applies the LTE predicate on the "code_challenge" field.
func CodeChallengeMethod ¶
CodeChallengeMethod applies equality check predicate on the "code_challenge_method" field. It's identical to CodeChallengeMethodEQ.
func CodeChallengeMethodContains ¶
CodeChallengeMethodContains applies the Contains predicate on the "code_challenge_method" field.
func CodeChallengeMethodContainsFold ¶
CodeChallengeMethodContainsFold applies the ContainsFold predicate on the "code_challenge_method" field.
func CodeChallengeMethodEQ ¶
CodeChallengeMethodEQ applies the EQ predicate on the "code_challenge_method" field.
func CodeChallengeMethodEqualFold ¶
CodeChallengeMethodEqualFold applies the EqualFold predicate on the "code_challenge_method" field.
func CodeChallengeMethodGT ¶
CodeChallengeMethodGT applies the GT predicate on the "code_challenge_method" field.
func CodeChallengeMethodGTE ¶
CodeChallengeMethodGTE applies the GTE predicate on the "code_challenge_method" field.
func CodeChallengeMethodHasPrefix ¶
CodeChallengeMethodHasPrefix applies the HasPrefix predicate on the "code_challenge_method" field.
func CodeChallengeMethodHasSuffix ¶
CodeChallengeMethodHasSuffix applies the HasSuffix predicate on the "code_challenge_method" field.
func CodeChallengeMethodIn ¶
CodeChallengeMethodIn applies the In predicate on the "code_challenge_method" field.
func CodeChallengeMethodLT ¶
CodeChallengeMethodLT applies the LT predicate on the "code_challenge_method" field.
func CodeChallengeMethodLTE ¶
CodeChallengeMethodLTE applies the LTE predicate on the "code_challenge_method" field.
func CodeChallengeMethodNEQ ¶
CodeChallengeMethodNEQ applies the NEQ predicate on the "code_challenge_method" field.
func CodeChallengeMethodNotIn ¶
CodeChallengeMethodNotIn applies the NotIn predicate on the "code_challenge_method" field.
func CodeChallengeNEQ ¶
CodeChallengeNEQ applies the NEQ predicate on the "code_challenge" field.
func CodeChallengeNotIn ¶
CodeChallengeNotIn applies the NotIn predicate on the "code_challenge" field.
func CodeHash ¶
CodeHash applies equality check predicate on the "code_hash" field. It's identical to CodeHashEQ.
func CodeHashContains ¶
CodeHashContains applies the Contains predicate on the "code_hash" field.
func CodeHashContainsFold ¶
CodeHashContainsFold applies the ContainsFold predicate on the "code_hash" field.
func CodeHashEQ ¶
CodeHashEQ applies the EQ predicate on the "code_hash" field.
func CodeHashEqualFold ¶
CodeHashEqualFold applies the EqualFold predicate on the "code_hash" field.
func CodeHashGT ¶
CodeHashGT applies the GT predicate on the "code_hash" field.
func CodeHashGTE ¶
CodeHashGTE applies the GTE predicate on the "code_hash" field.
func CodeHashHasPrefix ¶
CodeHashHasPrefix applies the HasPrefix predicate on the "code_hash" field.
func CodeHashHasSuffix ¶
CodeHashHasSuffix applies the HasSuffix predicate on the "code_hash" field.
func CodeHashIn ¶
CodeHashIn applies the In predicate on the "code_hash" field.
func CodeHashLT ¶
CodeHashLT applies the LT predicate on the "code_hash" field.
func CodeHashLTE ¶
CodeHashLTE applies the LTE predicate on the "code_hash" field.
func CodeHashNEQ ¶
CodeHashNEQ applies the NEQ predicate on the "code_hash" field.
func CodeHashNotIn ¶
CodeHashNotIn applies the NotIn predicate on the "code_hash" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasClientWith ¶
func HasClientWith(preds ...predicate.OAuthClient) predicate.OAuthCode
HasClientWith applies the HasEdge predicate on the "client" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func RedirectURI ¶
RedirectURI applies equality check predicate on the "redirect_uri" field. It's identical to RedirectURIEQ.
func RedirectURIContains ¶
RedirectURIContains applies the Contains predicate on the "redirect_uri" field.
func RedirectURIContainsFold ¶
RedirectURIContainsFold applies the ContainsFold predicate on the "redirect_uri" field.
func RedirectURIEQ ¶
RedirectURIEQ applies the EQ predicate on the "redirect_uri" field.
func RedirectURIEqualFold ¶
RedirectURIEqualFold applies the EqualFold predicate on the "redirect_uri" field.
func RedirectURIGT ¶
RedirectURIGT applies the GT predicate on the "redirect_uri" field.
func RedirectURIGTE ¶
RedirectURIGTE applies the GTE predicate on the "redirect_uri" field.
func RedirectURIHasPrefix ¶
RedirectURIHasPrefix applies the HasPrefix predicate on the "redirect_uri" field.
func RedirectURIHasSuffix ¶
RedirectURIHasSuffix applies the HasSuffix predicate on the "redirect_uri" field.
func RedirectURIIn ¶
RedirectURIIn applies the In predicate on the "redirect_uri" field.
func RedirectURILT ¶
RedirectURILT applies the LT predicate on the "redirect_uri" field.
func RedirectURILTE ¶
RedirectURILTE applies the LTE predicate on the "redirect_uri" field.
func RedirectURINEQ ¶
RedirectURINEQ applies the NEQ predicate on the "redirect_uri" field.
func RedirectURINotIn ¶
RedirectURINotIn applies the NotIn predicate on the "redirect_uri" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
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 OAuthCode queries.
func ByClientField ¶
func ByClientField(field string, opts ...sql.OrderTermOption) OrderOption
ByClientField orders the results by client field.
func ByClientID ¶
func ByClientID(opts ...sql.OrderTermOption) OrderOption
ByClientID orders the results by the client_id field.
func ByCodeChallenge ¶
func ByCodeChallenge(opts ...sql.OrderTermOption) OrderOption
ByCodeChallenge orders the results by the code_challenge field.
func ByCodeChallengeMethod ¶
func ByCodeChallengeMethod(opts ...sql.OrderTermOption) OrderOption
ByCodeChallengeMethod orders the results by the code_challenge_method field.
func ByCodeHash ¶
func ByCodeHash(opts ...sql.OrderTermOption) OrderOption
ByCodeHash orders the results by the code_hash field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRedirectURI ¶
func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption
ByRedirectURI orders the results by the redirect_uri field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.