oauth2token

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauth2token type in the database.
	Label = "oauth2token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldAccessToken holds the string denoting the access_token field in the database.
	FieldAccessToken = "access_token"
	// FieldRefreshToken holds the string denoting the refresh_token field in the database.
	FieldRefreshToken = "refresh_token"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldRevoked holds the string denoting the revoked field in the database.
	FieldRevoked = "revoked"
	// FieldScope holds the string denoting the scope field in the database.
	FieldScope = "scope"
	// FieldDeviceInfo holds the string denoting the device_info field in the database.
	FieldDeviceInfo = "device_info"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the oauth2token in the database.
	Table = "oauth2_tokens"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "oauth2_tokens"
	// 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_oauth2_tokens"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultRevoked holds the default value on creation for the "revoked" field.
	DefaultRevoked bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for oauth2token fields.

View Source
var ForeignKeys = []string{
	"user_oauth2_tokens",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "oauth2_tokens" table and are not defined as standalone fields in the schema.

Functions

func AccessToken

func AccessToken(v string) predicate.Oauth2Token

AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.

func AccessTokenContains

func AccessTokenContains(v string) predicate.Oauth2Token

AccessTokenContains applies the Contains predicate on the "access_token" field.

func AccessTokenContainsFold

func AccessTokenContainsFold(v string) predicate.Oauth2Token

AccessTokenContainsFold applies the ContainsFold predicate on the "access_token" field.

func AccessTokenEQ

func AccessTokenEQ(v string) predicate.Oauth2Token

AccessTokenEQ applies the EQ predicate on the "access_token" field.

func AccessTokenEqualFold

func AccessTokenEqualFold(v string) predicate.Oauth2Token

AccessTokenEqualFold applies the EqualFold predicate on the "access_token" field.

func AccessTokenGT

func AccessTokenGT(v string) predicate.Oauth2Token

AccessTokenGT applies the GT predicate on the "access_token" field.

func AccessTokenGTE

func AccessTokenGTE(v string) predicate.Oauth2Token

AccessTokenGTE applies the GTE predicate on the "access_token" field.

func AccessTokenHasPrefix

func AccessTokenHasPrefix(v string) predicate.Oauth2Token

AccessTokenHasPrefix applies the HasPrefix predicate on the "access_token" field.

func AccessTokenHasSuffix

func AccessTokenHasSuffix(v string) predicate.Oauth2Token

AccessTokenHasSuffix applies the HasSuffix predicate on the "access_token" field.

func AccessTokenIn

func AccessTokenIn(vs ...string) predicate.Oauth2Token

AccessTokenIn applies the In predicate on the "access_token" field.

func AccessTokenLT

func AccessTokenLT(v string) predicate.Oauth2Token

AccessTokenLT applies the LT predicate on the "access_token" field.

func AccessTokenLTE

func AccessTokenLTE(v string) predicate.Oauth2Token

AccessTokenLTE applies the LTE predicate on the "access_token" field.

func AccessTokenNEQ

func AccessTokenNEQ(v string) predicate.Oauth2Token

AccessTokenNEQ applies the NEQ predicate on the "access_token" field.

func AccessTokenNotIn

func AccessTokenNotIn(vs ...string) predicate.Oauth2Token

AccessTokenNotIn applies the NotIn predicate on the "access_token" field.

func And

func And(predicates ...predicate.Oauth2Token) predicate.Oauth2Token

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v string) predicate.Oauth2Token

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

func ClientIDContains

func ClientIDContains(v string) predicate.Oauth2Token

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

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.Oauth2Token

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

func ClientIDEQ

func ClientIDEQ(v string) predicate.Oauth2Token

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

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.Oauth2Token

ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.

func ClientIDGT

func ClientIDGT(v string) predicate.Oauth2Token

ClientIDGT applies the GT predicate on the "client_id" field.

func ClientIDGTE

func ClientIDGTE(v string) predicate.Oauth2Token

ClientIDGTE applies the GTE predicate on the "client_id" field.

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.Oauth2Token

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

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.Oauth2Token

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

func ClientIDIn

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

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

func ClientIDLT

func ClientIDLT(v string) predicate.Oauth2Token

ClientIDLT applies the LT predicate on the "client_id" field.

func ClientIDLTE

func ClientIDLTE(v string) predicate.Oauth2Token

ClientIDLTE applies the LTE predicate on the "client_id" field.

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.Oauth2Token

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

func ClientIDNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Oauth2Token

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Oauth2Token

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Oauth2Token

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Oauth2Token

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Oauth2Token

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Oauth2Token

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Oauth2Token

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Oauth2Token

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Oauth2Token

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeviceInfo

func DeviceInfo(v string) predicate.Oauth2Token

DeviceInfo applies equality check predicate on the "device_info" field. It's identical to DeviceInfoEQ.

func DeviceInfoContains

func DeviceInfoContains(v string) predicate.Oauth2Token

DeviceInfoContains applies the Contains predicate on the "device_info" field.

func DeviceInfoContainsFold

func DeviceInfoContainsFold(v string) predicate.Oauth2Token

DeviceInfoContainsFold applies the ContainsFold predicate on the "device_info" field.

func DeviceInfoEQ

func DeviceInfoEQ(v string) predicate.Oauth2Token

DeviceInfoEQ applies the EQ predicate on the "device_info" field.

func DeviceInfoEqualFold

func DeviceInfoEqualFold(v string) predicate.Oauth2Token

DeviceInfoEqualFold applies the EqualFold predicate on the "device_info" field.

func DeviceInfoGT

func DeviceInfoGT(v string) predicate.Oauth2Token

DeviceInfoGT applies the GT predicate on the "device_info" field.

func DeviceInfoGTE

func DeviceInfoGTE(v string) predicate.Oauth2Token

DeviceInfoGTE applies the GTE predicate on the "device_info" field.

func DeviceInfoHasPrefix

func DeviceInfoHasPrefix(v string) predicate.Oauth2Token

DeviceInfoHasPrefix applies the HasPrefix predicate on the "device_info" field.

func DeviceInfoHasSuffix

func DeviceInfoHasSuffix(v string) predicate.Oauth2Token

DeviceInfoHasSuffix applies the HasSuffix predicate on the "device_info" field.

func DeviceInfoIn

func DeviceInfoIn(vs ...string) predicate.Oauth2Token

DeviceInfoIn applies the In predicate on the "device_info" field.

func DeviceInfoIsNil

func DeviceInfoIsNil() predicate.Oauth2Token

DeviceInfoIsNil applies the IsNil predicate on the "device_info" field.

func DeviceInfoLT

func DeviceInfoLT(v string) predicate.Oauth2Token

DeviceInfoLT applies the LT predicate on the "device_info" field.

func DeviceInfoLTE

func DeviceInfoLTE(v string) predicate.Oauth2Token

DeviceInfoLTE applies the LTE predicate on the "device_info" field.

func DeviceInfoNEQ

func DeviceInfoNEQ(v string) predicate.Oauth2Token

DeviceInfoNEQ applies the NEQ predicate on the "device_info" field.

func DeviceInfoNotIn

func DeviceInfoNotIn(vs ...string) predicate.Oauth2Token

DeviceInfoNotIn applies the NotIn predicate on the "device_info" field.

func DeviceInfoNotNil

func DeviceInfoNotNil() predicate.Oauth2Token

DeviceInfoNotNil applies the NotNil predicate on the "device_info" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Oauth2Token

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Oauth2Token

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Oauth2Token

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Oauth2Token

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

func ExpiresAtIn

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

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Oauth2Token

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Oauth2Token

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Oauth2Token

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

func ExpiresAtNotIn

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

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

func HasUser

func HasUser() predicate.Oauth2Token

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

func HasUserWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Oauth2Token

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Oauth2Token

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Oauth2Token

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Oauth2Token

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Oauth2Token

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Oauth2Token

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Oauth2Token

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Oauth2Token

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.Oauth2Token) predicate.Oauth2Token

Or groups predicates with the OR operator between them.

func RefreshToken

func RefreshToken(v string) predicate.Oauth2Token

RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.

func RefreshTokenContains

func RefreshTokenContains(v string) predicate.Oauth2Token

RefreshTokenContains applies the Contains predicate on the "refresh_token" field.

func RefreshTokenContainsFold

func RefreshTokenContainsFold(v string) predicate.Oauth2Token

RefreshTokenContainsFold applies the ContainsFold predicate on the "refresh_token" field.

func RefreshTokenEQ

func RefreshTokenEQ(v string) predicate.Oauth2Token

RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.

func RefreshTokenEqualFold

func RefreshTokenEqualFold(v string) predicate.Oauth2Token

RefreshTokenEqualFold applies the EqualFold predicate on the "refresh_token" field.

func RefreshTokenGT

func RefreshTokenGT(v string) predicate.Oauth2Token

RefreshTokenGT applies the GT predicate on the "refresh_token" field.

func RefreshTokenGTE

func RefreshTokenGTE(v string) predicate.Oauth2Token

RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.

func RefreshTokenHasPrefix

func RefreshTokenHasPrefix(v string) predicate.Oauth2Token

RefreshTokenHasPrefix applies the HasPrefix predicate on the "refresh_token" field.

func RefreshTokenHasSuffix

func RefreshTokenHasSuffix(v string) predicate.Oauth2Token

RefreshTokenHasSuffix applies the HasSuffix predicate on the "refresh_token" field.

func RefreshTokenIn

func RefreshTokenIn(vs ...string) predicate.Oauth2Token

RefreshTokenIn applies the In predicate on the "refresh_token" field.

func RefreshTokenLT

func RefreshTokenLT(v string) predicate.Oauth2Token

RefreshTokenLT applies the LT predicate on the "refresh_token" field.

func RefreshTokenLTE

func RefreshTokenLTE(v string) predicate.Oauth2Token

RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.

func RefreshTokenNEQ

func RefreshTokenNEQ(v string) predicate.Oauth2Token

RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.

func RefreshTokenNotIn

func RefreshTokenNotIn(vs ...string) predicate.Oauth2Token

RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.

func Revoked

func Revoked(v bool) predicate.Oauth2Token

Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.

func RevokedEQ

func RevokedEQ(v bool) predicate.Oauth2Token

RevokedEQ applies the EQ predicate on the "revoked" field.

func RevokedNEQ

func RevokedNEQ(v bool) predicate.Oauth2Token

RevokedNEQ applies the NEQ predicate on the "revoked" field.

func Scope

func Scope(v string) predicate.Oauth2Token

Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.

func ScopeContains

func ScopeContains(v string) predicate.Oauth2Token

ScopeContains applies the Contains predicate on the "scope" field.

func ScopeContainsFold

func ScopeContainsFold(v string) predicate.Oauth2Token

ScopeContainsFold applies the ContainsFold predicate on the "scope" field.

func ScopeEQ

func ScopeEQ(v string) predicate.Oauth2Token

ScopeEQ applies the EQ predicate on the "scope" field.

func ScopeEqualFold

func ScopeEqualFold(v string) predicate.Oauth2Token

ScopeEqualFold applies the EqualFold predicate on the "scope" field.

func ScopeGT

func ScopeGT(v string) predicate.Oauth2Token

ScopeGT applies the GT predicate on the "scope" field.

func ScopeGTE

func ScopeGTE(v string) predicate.Oauth2Token

ScopeGTE applies the GTE predicate on the "scope" field.

func ScopeHasPrefix

func ScopeHasPrefix(v string) predicate.Oauth2Token

ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.

func ScopeHasSuffix

func ScopeHasSuffix(v string) predicate.Oauth2Token

ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.

func ScopeIn

func ScopeIn(vs ...string) predicate.Oauth2Token

ScopeIn applies the In predicate on the "scope" field.

func ScopeLT

func ScopeLT(v string) predicate.Oauth2Token

ScopeLT applies the LT predicate on the "scope" field.

func ScopeLTE

func ScopeLTE(v string) predicate.Oauth2Token

ScopeLTE applies the LTE predicate on the "scope" field.

func ScopeNEQ

func ScopeNEQ(v string) predicate.Oauth2Token

ScopeNEQ applies the NEQ predicate on the "scope" field.

func ScopeNotIn

func ScopeNotIn(vs ...string) predicate.Oauth2Token

ScopeNotIn applies the NotIn predicate on the "scope" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Oauth2Token

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Oauth2Token

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Oauth2Token

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Oauth2Token

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Oauth2Token

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Oauth2Token

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Oauth2Token

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Oauth2Token

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Oauth2Token

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Oauth2Token queries.

func ByAccessToken

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

ByAccessToken orders the results by the access_token field.

func ByClientID

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

ByClientID orders the results by the client_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeviceInfo

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

ByDeviceInfo orders the results by the device_info 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 ByRefreshToken

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

ByRefreshToken orders the results by the refresh_token field.

func ByRevoked

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

ByRevoked orders the results by the revoked field.

func ByScope

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

ByScope orders the results by the scope field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

Jump to

Keyboard shortcuts

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