Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Code) predicate.Code
- func ClientID(v string) predicate.Code
- func ClientIDContains(v string) predicate.Code
- func ClientIDContainsFold(v string) predicate.Code
- func ClientIDEQ(v string) predicate.Code
- func ClientIDEqualFold(v string) predicate.Code
- func ClientIDGT(v string) predicate.Code
- func ClientIDGTE(v string) predicate.Code
- func ClientIDHasPrefix(v string) predicate.Code
- func ClientIDHasSuffix(v string) predicate.Code
- func ClientIDIn(vs ...string) predicate.Code
- func ClientIDLT(v string) predicate.Code
- func ClientIDLTE(v string) predicate.Code
- func ClientIDNEQ(v string) predicate.Code
- func ClientIDNotIn(vs ...string) predicate.Code
- func Code(v string) predicate.Code
- func CodeChallenge(v string) predicate.Code
- func CodeChallengeContains(v string) predicate.Code
- func CodeChallengeContainsFold(v string) predicate.Code
- func CodeChallengeEQ(v string) predicate.Code
- func CodeChallengeEqualFold(v string) predicate.Code
- func CodeChallengeGT(v string) predicate.Code
- func CodeChallengeGTE(v string) predicate.Code
- func CodeChallengeHasPrefix(v string) predicate.Code
- func CodeChallengeHasSuffix(v string) predicate.Code
- func CodeChallengeIn(vs ...string) predicate.Code
- func CodeChallengeLT(v string) predicate.Code
- func CodeChallengeLTE(v string) predicate.Code
- func CodeChallengeNEQ(v string) predicate.Code
- func CodeChallengeNotIn(vs ...string) predicate.Code
- func CodeContains(v string) predicate.Code
- func CodeContainsFold(v string) predicate.Code
- func CodeEQ(v string) predicate.Code
- func CodeEqualFold(v string) predicate.Code
- func CodeGT(v string) predicate.Code
- func CodeGTE(v string) predicate.Code
- func CodeHasPrefix(v string) predicate.Code
- func CodeHasSuffix(v string) predicate.Code
- func CodeIn(vs ...string) predicate.Code
- func CodeLT(v string) predicate.Code
- func CodeLTE(v string) predicate.Code
- func CodeNEQ(v string) predicate.Code
- func CodeNotIn(vs ...string) predicate.Code
- func ExpiresAt(v time.Time) predicate.Code
- func ExpiresAtEQ(v time.Time) predicate.Code
- func ExpiresAtGT(v time.Time) predicate.Code
- func ExpiresAtGTE(v time.Time) predicate.Code
- func ExpiresAtIn(vs ...time.Time) predicate.Code
- func ExpiresAtLT(v time.Time) predicate.Code
- func ExpiresAtLTE(v time.Time) predicate.Code
- func ExpiresAtNEQ(v time.Time) predicate.Code
- func ExpiresAtNotIn(vs ...time.Time) predicate.Code
- func HasGroups() predicate.Code
- func HasGroupsWith(preds ...predicate.Group) predicate.Code
- func HasUser() predicate.Code
- func HasUserWith(preds ...predicate.User) predicate.Code
- func ID(id uuid.UUID) predicate.Code
- func IDEQ(id uuid.UUID) predicate.Code
- func IDGT(id uuid.UUID) predicate.Code
- func IDGTE(id uuid.UUID) predicate.Code
- func IDIn(ids ...uuid.UUID) predicate.Code
- func IDLT(id uuid.UUID) predicate.Code
- func IDLTE(id uuid.UUID) predicate.Code
- func IDNEQ(id uuid.UUID) predicate.Code
- func IDNotIn(ids ...uuid.UUID) predicate.Code
- func Not(p predicate.Code) predicate.Code
- func Or(predicates ...predicate.Code) predicate.Code
- func RedirectURI(v string) predicate.Code
- func RedirectURIContains(v string) predicate.Code
- func RedirectURIContainsFold(v string) predicate.Code
- func RedirectURIEQ(v string) predicate.Code
- func RedirectURIEqualFold(v string) predicate.Code
- func RedirectURIGT(v string) predicate.Code
- func RedirectURIGTE(v string) predicate.Code
- func RedirectURIHasPrefix(v string) predicate.Code
- func RedirectURIHasSuffix(v string) predicate.Code
- func RedirectURIIn(vs ...string) predicate.Code
- func RedirectURILT(v string) predicate.Code
- func RedirectURILTE(v string) predicate.Code
- func RedirectURINEQ(v string) predicate.Code
- func RedirectURINotIn(vs ...string) predicate.Code
- func Scope(v string) predicate.Code
- func ScopeContains(v string) predicate.Code
- func ScopeContainsFold(v string) predicate.Code
- func ScopeEQ(v string) predicate.Code
- func ScopeEqualFold(v string) predicate.Code
- func ScopeGT(v string) predicate.Code
- func ScopeGTE(v string) predicate.Code
- func ScopeHasPrefix(v string) predicate.Code
- func ScopeHasSuffix(v string) predicate.Code
- func ScopeIn(vs ...string) predicate.Code
- func ScopeLT(v string) predicate.Code
- func ScopeLTE(v string) predicate.Code
- func ScopeNEQ(v string) predicate.Code
- func ScopeNotIn(vs ...string) predicate.Code
- func ValidColumn(column string) bool
- type OrderOption
- func ByClientID(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCodeChallenge(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption
- func ByScope(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the code type in the database. Label = "code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldClientID holds the string denoting the client_id field in the database. FieldClientID = "client_id" // FieldScope holds the string denoting the scope field in the database. FieldScope = "scope" // FieldRedirectURI holds the string denoting the redirect_uri field in the database. FieldRedirectURI = "redirect_uri" // FieldCodeChallenge holds the string denoting the code_challenge field in the database. FieldCodeChallenge = "code_challenge" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // Table holds the table name of the code in the database. Table = "codes" // UserTable is the table that holds the user relation/edge. UserTable = "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_codes" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_codes" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" )
Variables ¶
var ( // DefaultClientID holds the default value on creation for the "client_id" field. DefaultClientID string // DefaultScope holds the default value on creation for the "scope" field. DefaultScope string // DefaultRedirectURI holds the default value on creation for the "redirect_uri" field. DefaultRedirectURI string // DefaultCodeChallenge holds the default value on creation for the "code_challenge" field. DefaultCodeChallenge string // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCode, FieldClientID, FieldScope, FieldRedirectURI, FieldCodeChallenge, FieldExpiresAt, }
Columns holds all SQL columns for code fields.
var ForeignKeys = []string{
"user_codes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "codes" table and are not defined as standalone fields in the schema.
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "code_id"} )
Functions ¶
func ClientID ¶
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDContains ¶
ClientIDContains applies the Contains predicate on the "client_id" field.
func ClientIDContainsFold ¶
ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.
func ClientIDEQ ¶
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDEqualFold ¶
ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.
func ClientIDGT ¶
ClientIDGT applies the GT predicate on the "client_id" field.
func ClientIDGTE ¶
ClientIDGTE applies the GTE predicate on the "client_id" field.
func ClientIDHasPrefix ¶
ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.
func ClientIDHasSuffix ¶
ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.
func ClientIDIn ¶
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDLT ¶
ClientIDLT applies the LT predicate on the "client_id" field.
func ClientIDLTE ¶
ClientIDLTE applies the LTE 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 CodeChallengeNEQ ¶
CodeChallengeNEQ applies the NEQ predicate on the "code_challenge" field.
func CodeChallengeNotIn ¶
CodeChallengeNotIn applies the NotIn predicate on the "code_challenge" field.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" 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 HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" 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 Scope ¶
Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.
func ScopeContains ¶
ScopeContains applies the Contains predicate on the "scope" field.
func ScopeContainsFold ¶
ScopeContainsFold applies the ContainsFold predicate on the "scope" field.
func ScopeEqualFold ¶
ScopeEqualFold applies the EqualFold predicate on the "scope" field.
func ScopeHasPrefix ¶
ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.
func ScopeHasSuffix ¶
ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.
func ScopeNotIn ¶
ScopeNotIn applies the NotIn predicate on the "scope" 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 Code queries.
func ByClientID ¶
func ByClientID(opts ...sql.OrderTermOption) OrderOption
ByClientID orders the results by the client_id field.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByCodeChallenge ¶
func ByCodeChallenge(opts ...sql.OrderTermOption) OrderOption
ByCodeChallenge orders the results by the code_challenge field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByGroups ¶
func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroups orders the results by groups terms.
func ByGroupsCount ¶
func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupsCount orders the results by groups count.
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 ByScope ¶
func ByScope(opts ...sql.OrderTermOption) OrderOption
ByScope orders the results by the scope field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.