oauthcode

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for oauthcode fields.

Functions

func And

func And(predicates ...predicate.OAuthCode) predicate.OAuthCode

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v int64) predicate.OAuthCode

ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.

func ClientIDEQ

func ClientIDEQ(v int64) predicate.OAuthCode

ClientIDEQ applies the EQ predicate on the "client_id" field.

func ClientIDIn

func ClientIDIn(vs ...int64) predicate.OAuthCode

ClientIDIn applies the In predicate on the "client_id" field.

func ClientIDNEQ

func ClientIDNEQ(v int64) predicate.OAuthCode

ClientIDNEQ applies the NEQ predicate on the "client_id" field.

func ClientIDNotIn

func ClientIDNotIn(vs ...int64) predicate.OAuthCode

ClientIDNotIn applies the NotIn predicate on the "client_id" field.

func CodeChallenge

func CodeChallenge(v string) predicate.OAuthCode

CodeChallenge applies equality check predicate on the "code_challenge" field. It's identical to CodeChallengeEQ.

func CodeChallengeContains

func CodeChallengeContains(v string) predicate.OAuthCode

CodeChallengeContains applies the Contains predicate on the "code_challenge" field.

func CodeChallengeContainsFold

func CodeChallengeContainsFold(v string) predicate.OAuthCode

CodeChallengeContainsFold applies the ContainsFold predicate on the "code_challenge" field.

func CodeChallengeEQ

func CodeChallengeEQ(v string) predicate.OAuthCode

CodeChallengeEQ applies the EQ predicate on the "code_challenge" field.

func CodeChallengeEqualFold

func CodeChallengeEqualFold(v string) predicate.OAuthCode

CodeChallengeEqualFold applies the EqualFold predicate on the "code_challenge" field.

func CodeChallengeGT

func CodeChallengeGT(v string) predicate.OAuthCode

CodeChallengeGT applies the GT predicate on the "code_challenge" field.

func CodeChallengeGTE

func CodeChallengeGTE(v string) predicate.OAuthCode

CodeChallengeGTE applies the GTE predicate on the "code_challenge" field.

func CodeChallengeHasPrefix

func CodeChallengeHasPrefix(v string) predicate.OAuthCode

CodeChallengeHasPrefix applies the HasPrefix predicate on the "code_challenge" field.

func CodeChallengeHasSuffix

func CodeChallengeHasSuffix(v string) predicate.OAuthCode

CodeChallengeHasSuffix applies the HasSuffix predicate on the "code_challenge" field.

func CodeChallengeIn

func CodeChallengeIn(vs ...string) predicate.OAuthCode

CodeChallengeIn applies the In predicate on the "code_challenge" field.

func CodeChallengeLT

func CodeChallengeLT(v string) predicate.OAuthCode

CodeChallengeLT applies the LT predicate on the "code_challenge" field.

func CodeChallengeLTE

func CodeChallengeLTE(v string) predicate.OAuthCode

CodeChallengeLTE applies the LTE predicate on the "code_challenge" field.

func CodeChallengeMethod

func CodeChallengeMethod(v string) predicate.OAuthCode

CodeChallengeMethod applies equality check predicate on the "code_challenge_method" field. It's identical to CodeChallengeMethodEQ.

func CodeChallengeMethodContains

func CodeChallengeMethodContains(v string) predicate.OAuthCode

CodeChallengeMethodContains applies the Contains predicate on the "code_challenge_method" field.

func CodeChallengeMethodContainsFold

func CodeChallengeMethodContainsFold(v string) predicate.OAuthCode

CodeChallengeMethodContainsFold applies the ContainsFold predicate on the "code_challenge_method" field.

func CodeChallengeMethodEQ

func CodeChallengeMethodEQ(v string) predicate.OAuthCode

CodeChallengeMethodEQ applies the EQ predicate on the "code_challenge_method" field.

func CodeChallengeMethodEqualFold

func CodeChallengeMethodEqualFold(v string) predicate.OAuthCode

CodeChallengeMethodEqualFold applies the EqualFold predicate on the "code_challenge_method" field.

func CodeChallengeMethodGT

func CodeChallengeMethodGT(v string) predicate.OAuthCode

CodeChallengeMethodGT applies the GT predicate on the "code_challenge_method" field.

func CodeChallengeMethodGTE

func CodeChallengeMethodGTE(v string) predicate.OAuthCode

CodeChallengeMethodGTE applies the GTE predicate on the "code_challenge_method" field.

func CodeChallengeMethodHasPrefix

func CodeChallengeMethodHasPrefix(v string) predicate.OAuthCode

CodeChallengeMethodHasPrefix applies the HasPrefix predicate on the "code_challenge_method" field.

func CodeChallengeMethodHasSuffix

func CodeChallengeMethodHasSuffix(v string) predicate.OAuthCode

CodeChallengeMethodHasSuffix applies the HasSuffix predicate on the "code_challenge_method" field.

func CodeChallengeMethodIn

func CodeChallengeMethodIn(vs ...string) predicate.OAuthCode

CodeChallengeMethodIn applies the In predicate on the "code_challenge_method" field.

func CodeChallengeMethodLT

func CodeChallengeMethodLT(v string) predicate.OAuthCode

CodeChallengeMethodLT applies the LT predicate on the "code_challenge_method" field.

func CodeChallengeMethodLTE

func CodeChallengeMethodLTE(v string) predicate.OAuthCode

CodeChallengeMethodLTE applies the LTE predicate on the "code_challenge_method" field.

func CodeChallengeMethodNEQ

func CodeChallengeMethodNEQ(v string) predicate.OAuthCode

CodeChallengeMethodNEQ applies the NEQ predicate on the "code_challenge_method" field.

func CodeChallengeMethodNotIn

func CodeChallengeMethodNotIn(vs ...string) predicate.OAuthCode

CodeChallengeMethodNotIn applies the NotIn predicate on the "code_challenge_method" field.

func CodeChallengeNEQ

func CodeChallengeNEQ(v string) predicate.OAuthCode

CodeChallengeNEQ applies the NEQ predicate on the "code_challenge" field.

func CodeChallengeNotIn

func CodeChallengeNotIn(vs ...string) predicate.OAuthCode

CodeChallengeNotIn applies the NotIn predicate on the "code_challenge" field.

func CodeHash

func CodeHash(v string) predicate.OAuthCode

CodeHash applies equality check predicate on the "code_hash" field. It's identical to CodeHashEQ.

func CodeHashContains

func CodeHashContains(v string) predicate.OAuthCode

CodeHashContains applies the Contains predicate on the "code_hash" field.

func CodeHashContainsFold

func CodeHashContainsFold(v string) predicate.OAuthCode

CodeHashContainsFold applies the ContainsFold predicate on the "code_hash" field.

func CodeHashEQ

func CodeHashEQ(v string) predicate.OAuthCode

CodeHashEQ applies the EQ predicate on the "code_hash" field.

func CodeHashEqualFold

func CodeHashEqualFold(v string) predicate.OAuthCode

CodeHashEqualFold applies the EqualFold predicate on the "code_hash" field.

func CodeHashGT

func CodeHashGT(v string) predicate.OAuthCode

CodeHashGT applies the GT predicate on the "code_hash" field.

func CodeHashGTE

func CodeHashGTE(v string) predicate.OAuthCode

CodeHashGTE applies the GTE predicate on the "code_hash" field.

func CodeHashHasPrefix

func CodeHashHasPrefix(v string) predicate.OAuthCode

CodeHashHasPrefix applies the HasPrefix predicate on the "code_hash" field.

func CodeHashHasSuffix

func CodeHashHasSuffix(v string) predicate.OAuthCode

CodeHashHasSuffix applies the HasSuffix predicate on the "code_hash" field.

func CodeHashIn

func CodeHashIn(vs ...string) predicate.OAuthCode

CodeHashIn applies the In predicate on the "code_hash" field.

func CodeHashLT

func CodeHashLT(v string) predicate.OAuthCode

CodeHashLT applies the LT predicate on the "code_hash" field.

func CodeHashLTE

func CodeHashLTE(v string) predicate.OAuthCode

CodeHashLTE applies the LTE predicate on the "code_hash" field.

func CodeHashNEQ

func CodeHashNEQ(v string) predicate.OAuthCode

CodeHashNEQ applies the NEQ predicate on the "code_hash" field.

func CodeHashNotIn

func CodeHashNotIn(vs ...string) predicate.OAuthCode

CodeHashNotIn applies the NotIn predicate on the "code_hash" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.OAuthCode

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.OAuthCode

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.OAuthCode

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.OAuthCode

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.OAuthCode

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.OAuthCode

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.OAuthCode

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.OAuthCode

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.OAuthCode

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func HasClient

func HasClient() predicate.OAuthCode

HasClient applies the HasEdge predicate on the "client" edge.

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 HasUser

func HasUser() predicate.OAuthCode

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.OAuthCode

HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).

func ID

func ID(id int64) predicate.OAuthCode

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.OAuthCode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.OAuthCode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.OAuthCode

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.OAuthCode

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.OAuthCode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.OAuthCode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.OAuthCode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.OAuthCode

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OAuthCode) predicate.OAuthCode

Or groups predicates with the OR operator between them.

func RedirectURI

func RedirectURI(v string) predicate.OAuthCode

RedirectURI applies equality check predicate on the "redirect_uri" field. It's identical to RedirectURIEQ.

func RedirectURIContains

func RedirectURIContains(v string) predicate.OAuthCode

RedirectURIContains applies the Contains predicate on the "redirect_uri" field.

func RedirectURIContainsFold

func RedirectURIContainsFold(v string) predicate.OAuthCode

RedirectURIContainsFold applies the ContainsFold predicate on the "redirect_uri" field.

func RedirectURIEQ

func RedirectURIEQ(v string) predicate.OAuthCode

RedirectURIEQ applies the EQ predicate on the "redirect_uri" field.

func RedirectURIEqualFold

func RedirectURIEqualFold(v string) predicate.OAuthCode

RedirectURIEqualFold applies the EqualFold predicate on the "redirect_uri" field.

func RedirectURIGT

func RedirectURIGT(v string) predicate.OAuthCode

RedirectURIGT applies the GT predicate on the "redirect_uri" field.

func RedirectURIGTE

func RedirectURIGTE(v string) predicate.OAuthCode

RedirectURIGTE applies the GTE predicate on the "redirect_uri" field.

func RedirectURIHasPrefix

func RedirectURIHasPrefix(v string) predicate.OAuthCode

RedirectURIHasPrefix applies the HasPrefix predicate on the "redirect_uri" field.

func RedirectURIHasSuffix

func RedirectURIHasSuffix(v string) predicate.OAuthCode

RedirectURIHasSuffix applies the HasSuffix predicate on the "redirect_uri" field.

func RedirectURIIn

func RedirectURIIn(vs ...string) predicate.OAuthCode

RedirectURIIn applies the In predicate on the "redirect_uri" field.

func RedirectURILT

func RedirectURILT(v string) predicate.OAuthCode

RedirectURILT applies the LT predicate on the "redirect_uri" field.

func RedirectURILTE

func RedirectURILTE(v string) predicate.OAuthCode

RedirectURILTE applies the LTE predicate on the "redirect_uri" field.

func RedirectURINEQ

func RedirectURINEQ(v string) predicate.OAuthCode

RedirectURINEQ applies the NEQ predicate on the "redirect_uri" field.

func RedirectURINotIn

func RedirectURINotIn(vs ...string) predicate.OAuthCode

RedirectURINotIn applies the NotIn predicate on the "redirect_uri" field.

func UserID

func UserID(v int64) predicate.OAuthCode

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.OAuthCode

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.OAuthCode

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.OAuthCode

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.OAuthCode

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL