oauthauthorizationcode

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauthauthorizationcode type in the database.
	Label = "oauth_authorization_code"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSessionType holds the string denoting the session_type field in the database.
	FieldSessionType = "session_type"
	// FieldSignature holds the string denoting the signature field in the database.
	FieldSignature = "signature"
	// 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"
	// FieldRequestID holds the string denoting the request_id field in the database.
	FieldRequestID = "request_id"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldSessionData holds the string denoting the session_data field in the database.
	FieldSessionData = "session_data"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldRequestedAt holds the string denoting the requested_at field in the database.
	FieldRequestedAt = "requested_at"
	// Table holds the table name of the oauthauthorizationcode in the database.
	Table = "oauth_authorization_codes"
)

Variables

View Source
var (
	// SessionTypeValidator is a validator for the "session_type" field. It is called by the builders before save.
	SessionTypeValidator func(string) error
	// SignatureValidator is a validator for the "signature" field. It is called by the builders before save.
	SignatureValidator func(string) error
	// ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save.
	ClientIDValidator func(string) error
	// DefaultRequestID holds the default value on creation for the "request_id" field.
	DefaultRequestID string
	// RequestIDValidator is a validator for the "request_id" field. It is called by the builders before save.
	RequestIDValidator func(string) error
	// DefaultScopes holds the default value on creation for the "scopes" field.
	DefaultScopes string
	// ScopesValidator is a validator for the "scopes" field. It is called by the builders before save.
	ScopesValidator func(string) error
	// DefaultSessionData holds the default value on creation for the "session_data" field.
	DefaultSessionData map[string]interface{}
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
)

Columns holds all SQL columns for oauthauthorizationcode fields.

Functions

func Active

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

And groups predicates with the AND operator between them.

func ClientID

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

func ClientIDContains

func ClientIDContains(v string) predicate.OAuthAuthorizationCode

ClientIDContains applies the Contains predicate on the "client_id" field.

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.OAuthAuthorizationCode

ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.

func ClientIDEQ

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

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.OAuthAuthorizationCode

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

func ClientIDHasPrefix(v string) predicate.OAuthAuthorizationCode

ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.OAuthAuthorizationCode

ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.

func ClientIDIn

func ClientIDIn(vs ...string) predicate.OAuthAuthorizationCode

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

func ClientIDNotIn(vs ...string) predicate.OAuthAuthorizationCode

ClientIDNotIn applies the NotIn predicate on the "client_id" 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

func ExpiresAtGTE(v time.Time) predicate.OAuthAuthorizationCode

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

func ExpiresAtIn

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

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

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.OAuthAuthorizationCode

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.OAuthAuthorizationCode

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.OAuthAuthorizationCode

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

func ExpiresAtNotIn

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

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

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.OAuthAuthorizationCode

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.OAuthAuthorizationCode

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RequestID

RequestID applies equality check predicate on the "request_id" field. It's identical to RequestIDEQ.

func RequestIDContains

func RequestIDContains(v string) predicate.OAuthAuthorizationCode

RequestIDContains applies the Contains predicate on the "request_id" field.

func RequestIDContainsFold

func RequestIDContainsFold(v string) predicate.OAuthAuthorizationCode

RequestIDContainsFold applies the ContainsFold predicate on the "request_id" field.

func RequestIDEQ

RequestIDEQ applies the EQ predicate on the "request_id" field.

func RequestIDEqualFold

func RequestIDEqualFold(v string) predicate.OAuthAuthorizationCode

RequestIDEqualFold applies the EqualFold predicate on the "request_id" field.

func RequestIDGT

RequestIDGT applies the GT predicate on the "request_id" field.

func RequestIDGTE

func RequestIDGTE(v string) predicate.OAuthAuthorizationCode

RequestIDGTE applies the GTE predicate on the "request_id" field.

func RequestIDHasPrefix

func RequestIDHasPrefix(v string) predicate.OAuthAuthorizationCode

RequestIDHasPrefix applies the HasPrefix predicate on the "request_id" field.

func RequestIDHasSuffix

func RequestIDHasSuffix(v string) predicate.OAuthAuthorizationCode

RequestIDHasSuffix applies the HasSuffix predicate on the "request_id" field.

func RequestIDIn

func RequestIDIn(vs ...string) predicate.OAuthAuthorizationCode

RequestIDIn applies the In predicate on the "request_id" field.

func RequestIDLT

RequestIDLT applies the LT predicate on the "request_id" field.

func RequestIDLTE

func RequestIDLTE(v string) predicate.OAuthAuthorizationCode

RequestIDLTE applies the LTE predicate on the "request_id" field.

func RequestIDNEQ

func RequestIDNEQ(v string) predicate.OAuthAuthorizationCode

RequestIDNEQ applies the NEQ predicate on the "request_id" field.

func RequestIDNotIn

func RequestIDNotIn(vs ...string) predicate.OAuthAuthorizationCode

RequestIDNotIn applies the NotIn predicate on the "request_id" field.

func RequestedAt

RequestedAt applies equality check predicate on the "requested_at" field. It's identical to RequestedAtEQ.

func RequestedAtEQ

func RequestedAtEQ(v time.Time) predicate.OAuthAuthorizationCode

RequestedAtEQ applies the EQ predicate on the "requested_at" field.

func RequestedAtGT

func RequestedAtGT(v time.Time) predicate.OAuthAuthorizationCode

RequestedAtGT applies the GT predicate on the "requested_at" field.

func RequestedAtGTE

func RequestedAtGTE(v time.Time) predicate.OAuthAuthorizationCode

RequestedAtGTE applies the GTE predicate on the "requested_at" field.

func RequestedAtIn

func RequestedAtIn(vs ...time.Time) predicate.OAuthAuthorizationCode

RequestedAtIn applies the In predicate on the "requested_at" field.

func RequestedAtIsNil

func RequestedAtIsNil() predicate.OAuthAuthorizationCode

RequestedAtIsNil applies the IsNil predicate on the "requested_at" field.

func RequestedAtLT

func RequestedAtLT(v time.Time) predicate.OAuthAuthorizationCode

RequestedAtLT applies the LT predicate on the "requested_at" field.

func RequestedAtLTE

func RequestedAtLTE(v time.Time) predicate.OAuthAuthorizationCode

RequestedAtLTE applies the LTE predicate on the "requested_at" field.

func RequestedAtNEQ

func RequestedAtNEQ(v time.Time) predicate.OAuthAuthorizationCode

RequestedAtNEQ applies the NEQ predicate on the "requested_at" field.

func RequestedAtNotIn

func RequestedAtNotIn(vs ...time.Time) predicate.OAuthAuthorizationCode

RequestedAtNotIn applies the NotIn predicate on the "requested_at" field.

func RequestedAtNotNil

func RequestedAtNotNil() predicate.OAuthAuthorizationCode

RequestedAtNotNil applies the NotNil predicate on the "requested_at" field.

func Scopes

Scopes applies equality check predicate on the "scopes" field. It's identical to ScopesEQ.

func ScopesContains

func ScopesContains(v string) predicate.OAuthAuthorizationCode

ScopesContains applies the Contains predicate on the "scopes" field.

func ScopesContainsFold

func ScopesContainsFold(v string) predicate.OAuthAuthorizationCode

ScopesContainsFold applies the ContainsFold predicate on the "scopes" field.

func ScopesEQ

ScopesEQ applies the EQ predicate on the "scopes" field.

func ScopesEqualFold

func ScopesEqualFold(v string) predicate.OAuthAuthorizationCode

ScopesEqualFold applies the EqualFold predicate on the "scopes" field.

func ScopesGT

ScopesGT applies the GT predicate on the "scopes" field.

func ScopesGTE

ScopesGTE applies the GTE predicate on the "scopes" field.

func ScopesHasPrefix

func ScopesHasPrefix(v string) predicate.OAuthAuthorizationCode

ScopesHasPrefix applies the HasPrefix predicate on the "scopes" field.

func ScopesHasSuffix

func ScopesHasSuffix(v string) predicate.OAuthAuthorizationCode

ScopesHasSuffix applies the HasSuffix predicate on the "scopes" field.

func ScopesIn

func ScopesIn(vs ...string) predicate.OAuthAuthorizationCode

ScopesIn applies the In predicate on the "scopes" field.

func ScopesLT

ScopesLT applies the LT predicate on the "scopes" field.

func ScopesLTE

ScopesLTE applies the LTE predicate on the "scopes" field.

func ScopesNEQ

ScopesNEQ applies the NEQ predicate on the "scopes" field.

func ScopesNotIn

func ScopesNotIn(vs ...string) predicate.OAuthAuthorizationCode

ScopesNotIn applies the NotIn predicate on the "scopes" field.

func SessionType

SessionType applies equality check predicate on the "session_type" field. It's identical to SessionTypeEQ.

func SessionTypeContains

func SessionTypeContains(v string) predicate.OAuthAuthorizationCode

SessionTypeContains applies the Contains predicate on the "session_type" field.

func SessionTypeContainsFold

func SessionTypeContainsFold(v string) predicate.OAuthAuthorizationCode

SessionTypeContainsFold applies the ContainsFold predicate on the "session_type" field.

func SessionTypeEQ

func SessionTypeEQ(v string) predicate.OAuthAuthorizationCode

SessionTypeEQ applies the EQ predicate on the "session_type" field.

func SessionTypeEqualFold

func SessionTypeEqualFold(v string) predicate.OAuthAuthorizationCode

SessionTypeEqualFold applies the EqualFold predicate on the "session_type" field.

func SessionTypeGT

func SessionTypeGT(v string) predicate.OAuthAuthorizationCode

SessionTypeGT applies the GT predicate on the "session_type" field.

func SessionTypeGTE

func SessionTypeGTE(v string) predicate.OAuthAuthorizationCode

SessionTypeGTE applies the GTE predicate on the "session_type" field.

func SessionTypeHasPrefix

func SessionTypeHasPrefix(v string) predicate.OAuthAuthorizationCode

SessionTypeHasPrefix applies the HasPrefix predicate on the "session_type" field.

func SessionTypeHasSuffix

func SessionTypeHasSuffix(v string) predicate.OAuthAuthorizationCode

SessionTypeHasSuffix applies the HasSuffix predicate on the "session_type" field.

func SessionTypeIn

func SessionTypeIn(vs ...string) predicate.OAuthAuthorizationCode

SessionTypeIn applies the In predicate on the "session_type" field.

func SessionTypeLT

func SessionTypeLT(v string) predicate.OAuthAuthorizationCode

SessionTypeLT applies the LT predicate on the "session_type" field.

func SessionTypeLTE

func SessionTypeLTE(v string) predicate.OAuthAuthorizationCode

SessionTypeLTE applies the LTE predicate on the "session_type" field.

func SessionTypeNEQ

func SessionTypeNEQ(v string) predicate.OAuthAuthorizationCode

SessionTypeNEQ applies the NEQ predicate on the "session_type" field.

func SessionTypeNotIn

func SessionTypeNotIn(vs ...string) predicate.OAuthAuthorizationCode

SessionTypeNotIn applies the NotIn predicate on the "session_type" field.

func Signature

Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.

func SignatureContains

func SignatureContains(v string) predicate.OAuthAuthorizationCode

SignatureContains applies the Contains predicate on the "signature" field.

func SignatureContainsFold

func SignatureContainsFold(v string) predicate.OAuthAuthorizationCode

SignatureContainsFold applies the ContainsFold predicate on the "signature" field.

func SignatureEQ

SignatureEQ applies the EQ predicate on the "signature" field.

func SignatureEqualFold

func SignatureEqualFold(v string) predicate.OAuthAuthorizationCode

SignatureEqualFold applies the EqualFold predicate on the "signature" field.

func SignatureGT

SignatureGT applies the GT predicate on the "signature" field.

func SignatureGTE

func SignatureGTE(v string) predicate.OAuthAuthorizationCode

SignatureGTE applies the GTE predicate on the "signature" field.

func SignatureHasPrefix

func SignatureHasPrefix(v string) predicate.OAuthAuthorizationCode

SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.

func SignatureHasSuffix

func SignatureHasSuffix(v string) predicate.OAuthAuthorizationCode

SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.

func SignatureIn

func SignatureIn(vs ...string) predicate.OAuthAuthorizationCode

SignatureIn applies the In predicate on the "signature" field.

func SignatureLT

SignatureLT applies the LT predicate on the "signature" field.

func SignatureLTE

func SignatureLTE(v string) predicate.OAuthAuthorizationCode

SignatureLTE applies the LTE predicate on the "signature" field.

func SignatureNEQ

func SignatureNEQ(v string) predicate.OAuthAuthorizationCode

SignatureNEQ applies the NEQ predicate on the "signature" field.

func SignatureNotIn

func SignatureNotIn(vs ...string) predicate.OAuthAuthorizationCode

SignatureNotIn applies the NotIn predicate on the "signature" field.

func UserID

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

func UserIDEQ

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

func UserIDGT

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.OAuthAuthorizationCode

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

func UserIDIsNil

func UserIDIsNil() predicate.OAuthAuthorizationCode

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDLT

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

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

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.OAuthAuthorizationCode

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

func UserIDNotNil

func UserIDNotNil() predicate.OAuthAuthorizationCode

UserIDNotNil applies the NotNil 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 OAuthAuthorizationCode queries.

func ByActive

func ByActive(opts ...sql.OrderTermOption) OrderOption

ByActive orders the results by the active field.

func ByClientID

func ByClientID(opts ...sql.OrderTermOption) OrderOption

ByClientID orders the results by the client_id 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 ByRequestID

func ByRequestID(opts ...sql.OrderTermOption) OrderOption

ByRequestID orders the results by the request_id field.

func ByRequestedAt

func ByRequestedAt(opts ...sql.OrderTermOption) OrderOption

ByRequestedAt orders the results by the requested_at field.

func ByScopes

func ByScopes(opts ...sql.OrderTermOption) OrderOption

ByScopes orders the results by the scopes field.

func BySessionType

func BySessionType(opts ...sql.OrderTermOption) OrderOption

BySessionType orders the results by the session_type field.

func BySignature

func BySignature(opts ...sql.OrderTermOption) OrderOption

BySignature orders the results by the signature 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