oauthtoken

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauthtoken type in the database.
	Label = "oauth_token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAppID holds the string denoting the app_id field in the database.
	FieldAppID = "app_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldServiceAccountID holds the string denoting the service_account_id field in the database.
	FieldServiceAccountID = "service_account_id"
	// FieldAccessTokenSignature holds the string denoting the access_token_signature field in the database.
	FieldAccessTokenSignature = "access_token_signature"
	// FieldRefreshTokenSignature holds the string denoting the refresh_token_signature field in the database.
	FieldRefreshTokenSignature = "refresh_token_signature"
	// FieldFamilyID holds the string denoting the family_id field in the database.
	FieldFamilyID = "family_id"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldAudience holds the string denoting the audience field in the database.
	FieldAudience = "audience"
	// FieldSessionID holds the string denoting the session_id field in the database.
	FieldSessionID = "session_id"
	// FieldRequestData holds the string denoting the request_data field in the database.
	FieldRequestData = "request_data"
	// FieldAccessExpiresAt holds the string denoting the access_expires_at field in the database.
	FieldAccessExpiresAt = "access_expires_at"
	// FieldRefreshExpiresAt holds the string denoting the refresh_expires_at field in the database.
	FieldRefreshExpiresAt = "refresh_expires_at"
	// FieldRevoked holds the string denoting the revoked field in the database.
	FieldRevoked = "revoked"
	// FieldRevokedAt holds the string denoting the revoked_at field in the database.
	FieldRevokedAt = "revoked_at"
	// FieldRevokedReason holds the string denoting the revoked_reason field in the database.
	FieldRevokedReason = "revoked_reason"
	// FieldClientIP holds the string denoting the client_ip field in the database.
	FieldClientIP = "client_ip"
	// FieldUserAgent holds the string denoting the user_agent field in the database.
	FieldUserAgent = "user_agent"
	// FieldLastUsedAt holds the string denoting the last_used_at field in the database.
	FieldLastUsedAt = "last_used_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeApp holds the string denoting the app edge name in mutations.
	EdgeApp = "app"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the oauthtoken in the database.
	Table = "cf_oauth_tokens"
	// AppTable is the table that holds the app relation/edge.
	AppTable = "cf_oauth_tokens"
	// AppInverseTable is the table name for the OAuthApp entity.
	// It exists in this package in order to avoid circular dependency with the "oauthapp" package.
	AppInverseTable = "cf_oauth_apps"
	// AppColumn is the table column denoting the app relation/edge.
	AppColumn = "app_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "cf_oauth_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 = "cf_users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

View Source
var (
	// DefaultFamilyID holds the default value on creation for the "family_id" field.
	DefaultFamilyID func() uuid.UUID
	// DefaultScopes holds the default value on creation for the "scopes" field.
	DefaultScopes []string
	// DefaultAudience holds the default value on creation for the "audience" field.
	DefaultAudience []string
	// DefaultRevoked holds the default value on creation for the "revoked" field.
	DefaultRevoked bool
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for oauthtoken fields.

Functions

func AccessExpiresAt

func AccessExpiresAt(v time.Time) predicate.OAuthToken

AccessExpiresAt applies equality check predicate on the "access_expires_at" field. It's identical to AccessExpiresAtEQ.

func AccessExpiresAtEQ

func AccessExpiresAtEQ(v time.Time) predicate.OAuthToken

AccessExpiresAtEQ applies the EQ predicate on the "access_expires_at" field.

func AccessExpiresAtGT

func AccessExpiresAtGT(v time.Time) predicate.OAuthToken

AccessExpiresAtGT applies the GT predicate on the "access_expires_at" field.

func AccessExpiresAtGTE

func AccessExpiresAtGTE(v time.Time) predicate.OAuthToken

AccessExpiresAtGTE applies the GTE predicate on the "access_expires_at" field.

func AccessExpiresAtIn

func AccessExpiresAtIn(vs ...time.Time) predicate.OAuthToken

AccessExpiresAtIn applies the In predicate on the "access_expires_at" field.

func AccessExpiresAtLT

func AccessExpiresAtLT(v time.Time) predicate.OAuthToken

AccessExpiresAtLT applies the LT predicate on the "access_expires_at" field.

func AccessExpiresAtLTE

func AccessExpiresAtLTE(v time.Time) predicate.OAuthToken

AccessExpiresAtLTE applies the LTE predicate on the "access_expires_at" field.

func AccessExpiresAtNEQ

func AccessExpiresAtNEQ(v time.Time) predicate.OAuthToken

AccessExpiresAtNEQ applies the NEQ predicate on the "access_expires_at" field.

func AccessExpiresAtNotIn

func AccessExpiresAtNotIn(vs ...time.Time) predicate.OAuthToken

AccessExpiresAtNotIn applies the NotIn predicate on the "access_expires_at" field.

func AccessTokenSignature

func AccessTokenSignature(v string) predicate.OAuthToken

AccessTokenSignature applies equality check predicate on the "access_token_signature" field. It's identical to AccessTokenSignatureEQ.

func AccessTokenSignatureContains

func AccessTokenSignatureContains(v string) predicate.OAuthToken

AccessTokenSignatureContains applies the Contains predicate on the "access_token_signature" field.

func AccessTokenSignatureContainsFold

func AccessTokenSignatureContainsFold(v string) predicate.OAuthToken

AccessTokenSignatureContainsFold applies the ContainsFold predicate on the "access_token_signature" field.

func AccessTokenSignatureEQ

func AccessTokenSignatureEQ(v string) predicate.OAuthToken

AccessTokenSignatureEQ applies the EQ predicate on the "access_token_signature" field.

func AccessTokenSignatureEqualFold

func AccessTokenSignatureEqualFold(v string) predicate.OAuthToken

AccessTokenSignatureEqualFold applies the EqualFold predicate on the "access_token_signature" field.

func AccessTokenSignatureGT

func AccessTokenSignatureGT(v string) predicate.OAuthToken

AccessTokenSignatureGT applies the GT predicate on the "access_token_signature" field.

func AccessTokenSignatureGTE

func AccessTokenSignatureGTE(v string) predicate.OAuthToken

AccessTokenSignatureGTE applies the GTE predicate on the "access_token_signature" field.

func AccessTokenSignatureHasPrefix

func AccessTokenSignatureHasPrefix(v string) predicate.OAuthToken

AccessTokenSignatureHasPrefix applies the HasPrefix predicate on the "access_token_signature" field.

func AccessTokenSignatureHasSuffix

func AccessTokenSignatureHasSuffix(v string) predicate.OAuthToken

AccessTokenSignatureHasSuffix applies the HasSuffix predicate on the "access_token_signature" field.

func AccessTokenSignatureIn

func AccessTokenSignatureIn(vs ...string) predicate.OAuthToken

AccessTokenSignatureIn applies the In predicate on the "access_token_signature" field.

func AccessTokenSignatureLT

func AccessTokenSignatureLT(v string) predicate.OAuthToken

AccessTokenSignatureLT applies the LT predicate on the "access_token_signature" field.

func AccessTokenSignatureLTE

func AccessTokenSignatureLTE(v string) predicate.OAuthToken

AccessTokenSignatureLTE applies the LTE predicate on the "access_token_signature" field.

func AccessTokenSignatureNEQ

func AccessTokenSignatureNEQ(v string) predicate.OAuthToken

AccessTokenSignatureNEQ applies the NEQ predicate on the "access_token_signature" field.

func AccessTokenSignatureNotIn

func AccessTokenSignatureNotIn(vs ...string) predicate.OAuthToken

AccessTokenSignatureNotIn applies the NotIn predicate on the "access_token_signature" field.

func And

func And(predicates ...predicate.OAuthToken) predicate.OAuthToken

And groups predicates with the AND operator between them.

func AppID

func AppID(v uuid.UUID) predicate.OAuthToken

AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.

func AppIDEQ

func AppIDEQ(v uuid.UUID) predicate.OAuthToken

AppIDEQ applies the EQ predicate on the "app_id" field.

func AppIDIn

func AppIDIn(vs ...uuid.UUID) predicate.OAuthToken

AppIDIn applies the In predicate on the "app_id" field.

func AppIDNEQ

func AppIDNEQ(v uuid.UUID) predicate.OAuthToken

AppIDNEQ applies the NEQ predicate on the "app_id" field.

func AppIDNotIn

func AppIDNotIn(vs ...uuid.UUID) predicate.OAuthToken

AppIDNotIn applies the NotIn predicate on the "app_id" field.

func ClientIP

func ClientIP(v string) predicate.OAuthToken

ClientIP applies equality check predicate on the "client_ip" field. It's identical to ClientIPEQ.

func ClientIPContains

func ClientIPContains(v string) predicate.OAuthToken

ClientIPContains applies the Contains predicate on the "client_ip" field.

func ClientIPContainsFold

func ClientIPContainsFold(v string) predicate.OAuthToken

ClientIPContainsFold applies the ContainsFold predicate on the "client_ip" field.

func ClientIPEQ

func ClientIPEQ(v string) predicate.OAuthToken

ClientIPEQ applies the EQ predicate on the "client_ip" field.

func ClientIPEqualFold

func ClientIPEqualFold(v string) predicate.OAuthToken

ClientIPEqualFold applies the EqualFold predicate on the "client_ip" field.

func ClientIPGT

func ClientIPGT(v string) predicate.OAuthToken

ClientIPGT applies the GT predicate on the "client_ip" field.

func ClientIPGTE

func ClientIPGTE(v string) predicate.OAuthToken

ClientIPGTE applies the GTE predicate on the "client_ip" field.

func ClientIPHasPrefix

func ClientIPHasPrefix(v string) predicate.OAuthToken

ClientIPHasPrefix applies the HasPrefix predicate on the "client_ip" field.

func ClientIPHasSuffix

func ClientIPHasSuffix(v string) predicate.OAuthToken

ClientIPHasSuffix applies the HasSuffix predicate on the "client_ip" field.

func ClientIPIn

func ClientIPIn(vs ...string) predicate.OAuthToken

ClientIPIn applies the In predicate on the "client_ip" field.

func ClientIPIsNil

func ClientIPIsNil() predicate.OAuthToken

ClientIPIsNil applies the IsNil predicate on the "client_ip" field.

func ClientIPLT

func ClientIPLT(v string) predicate.OAuthToken

ClientIPLT applies the LT predicate on the "client_ip" field.

func ClientIPLTE

func ClientIPLTE(v string) predicate.OAuthToken

ClientIPLTE applies the LTE predicate on the "client_ip" field.

func ClientIPNEQ

func ClientIPNEQ(v string) predicate.OAuthToken

ClientIPNEQ applies the NEQ predicate on the "client_ip" field.

func ClientIPNotIn

func ClientIPNotIn(vs ...string) predicate.OAuthToken

ClientIPNotIn applies the NotIn predicate on the "client_ip" field.

func ClientIPNotNil

func ClientIPNotNil() predicate.OAuthToken

ClientIPNotNil applies the NotNil predicate on the "client_ip" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.OAuthToken

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OAuthToken

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OAuthToken

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OAuthToken

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OAuthToken

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OAuthToken

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OAuthToken

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

func CreatedAtNotIn

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

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

func FamilyID

func FamilyID(v uuid.UUID) predicate.OAuthToken

FamilyID applies equality check predicate on the "family_id" field. It's identical to FamilyIDEQ.

func FamilyIDEQ

func FamilyIDEQ(v uuid.UUID) predicate.OAuthToken

FamilyIDEQ applies the EQ predicate on the "family_id" field.

func FamilyIDGT

func FamilyIDGT(v uuid.UUID) predicate.OAuthToken

FamilyIDGT applies the GT predicate on the "family_id" field.

func FamilyIDGTE

func FamilyIDGTE(v uuid.UUID) predicate.OAuthToken

FamilyIDGTE applies the GTE predicate on the "family_id" field.

func FamilyIDIn

func FamilyIDIn(vs ...uuid.UUID) predicate.OAuthToken

FamilyIDIn applies the In predicate on the "family_id" field.

func FamilyIDLT

func FamilyIDLT(v uuid.UUID) predicate.OAuthToken

FamilyIDLT applies the LT predicate on the "family_id" field.

func FamilyIDLTE

func FamilyIDLTE(v uuid.UUID) predicate.OAuthToken

FamilyIDLTE applies the LTE predicate on the "family_id" field.

func FamilyIDNEQ

func FamilyIDNEQ(v uuid.UUID) predicate.OAuthToken

FamilyIDNEQ applies the NEQ predicate on the "family_id" field.

func FamilyIDNotIn

func FamilyIDNotIn(vs ...uuid.UUID) predicate.OAuthToken

FamilyIDNotIn applies the NotIn predicate on the "family_id" field.

func HasApp

func HasApp() predicate.OAuthToken

HasApp applies the HasEdge predicate on the "app" edge.

func HasAppWith

func HasAppWith(preds ...predicate.OAuthApp) predicate.OAuthToken

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

func HasUser

func HasUser() predicate.OAuthToken

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

func HasUserWith

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

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.OAuthToken

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.OAuthToken

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.OAuthToken

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.OAuthToken

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.OAuthToken

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.OAuthToken

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.OAuthToken

LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.OAuthToken

LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.OAuthToken

LastUsedAtGT applies the GT predicate on the "last_used_at" field.

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.OAuthToken

LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.

func LastUsedAtIn

func LastUsedAtIn(vs ...time.Time) predicate.OAuthToken

LastUsedAtIn applies the In predicate on the "last_used_at" field.

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.OAuthToken

LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.OAuthToken

LastUsedAtLT applies the LT predicate on the "last_used_at" field.

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.OAuthToken

LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.OAuthToken

LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.

func LastUsedAtNotIn

func LastUsedAtNotIn(vs ...time.Time) predicate.OAuthToken

LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.OAuthToken

LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OAuthToken) predicate.OAuthToken

Or groups predicates with the OR operator between them.

func RefreshExpiresAt

func RefreshExpiresAt(v time.Time) predicate.OAuthToken

RefreshExpiresAt applies equality check predicate on the "refresh_expires_at" field. It's identical to RefreshExpiresAtEQ.

func RefreshExpiresAtEQ

func RefreshExpiresAtEQ(v time.Time) predicate.OAuthToken

RefreshExpiresAtEQ applies the EQ predicate on the "refresh_expires_at" field.

func RefreshExpiresAtGT

func RefreshExpiresAtGT(v time.Time) predicate.OAuthToken

RefreshExpiresAtGT applies the GT predicate on the "refresh_expires_at" field.

func RefreshExpiresAtGTE

func RefreshExpiresAtGTE(v time.Time) predicate.OAuthToken

RefreshExpiresAtGTE applies the GTE predicate on the "refresh_expires_at" field.

func RefreshExpiresAtIn

func RefreshExpiresAtIn(vs ...time.Time) predicate.OAuthToken

RefreshExpiresAtIn applies the In predicate on the "refresh_expires_at" field.

func RefreshExpiresAtIsNil

func RefreshExpiresAtIsNil() predicate.OAuthToken

RefreshExpiresAtIsNil applies the IsNil predicate on the "refresh_expires_at" field.

func RefreshExpiresAtLT

func RefreshExpiresAtLT(v time.Time) predicate.OAuthToken

RefreshExpiresAtLT applies the LT predicate on the "refresh_expires_at" field.

func RefreshExpiresAtLTE

func RefreshExpiresAtLTE(v time.Time) predicate.OAuthToken

RefreshExpiresAtLTE applies the LTE predicate on the "refresh_expires_at" field.

func RefreshExpiresAtNEQ

func RefreshExpiresAtNEQ(v time.Time) predicate.OAuthToken

RefreshExpiresAtNEQ applies the NEQ predicate on the "refresh_expires_at" field.

func RefreshExpiresAtNotIn

func RefreshExpiresAtNotIn(vs ...time.Time) predicate.OAuthToken

RefreshExpiresAtNotIn applies the NotIn predicate on the "refresh_expires_at" field.

func RefreshExpiresAtNotNil

func RefreshExpiresAtNotNil() predicate.OAuthToken

RefreshExpiresAtNotNil applies the NotNil predicate on the "refresh_expires_at" field.

func RefreshTokenSignature

func RefreshTokenSignature(v string) predicate.OAuthToken

RefreshTokenSignature applies equality check predicate on the "refresh_token_signature" field. It's identical to RefreshTokenSignatureEQ.

func RefreshTokenSignatureContains

func RefreshTokenSignatureContains(v string) predicate.OAuthToken

RefreshTokenSignatureContains applies the Contains predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureContainsFold

func RefreshTokenSignatureContainsFold(v string) predicate.OAuthToken

RefreshTokenSignatureContainsFold applies the ContainsFold predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureEQ

func RefreshTokenSignatureEQ(v string) predicate.OAuthToken

RefreshTokenSignatureEQ applies the EQ predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureEqualFold

func RefreshTokenSignatureEqualFold(v string) predicate.OAuthToken

RefreshTokenSignatureEqualFold applies the EqualFold predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureGT

func RefreshTokenSignatureGT(v string) predicate.OAuthToken

RefreshTokenSignatureGT applies the GT predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureGTE

func RefreshTokenSignatureGTE(v string) predicate.OAuthToken

RefreshTokenSignatureGTE applies the GTE predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureHasPrefix

func RefreshTokenSignatureHasPrefix(v string) predicate.OAuthToken

RefreshTokenSignatureHasPrefix applies the HasPrefix predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureHasSuffix

func RefreshTokenSignatureHasSuffix(v string) predicate.OAuthToken

RefreshTokenSignatureHasSuffix applies the HasSuffix predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureIn

func RefreshTokenSignatureIn(vs ...string) predicate.OAuthToken

RefreshTokenSignatureIn applies the In predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureIsNil

func RefreshTokenSignatureIsNil() predicate.OAuthToken

RefreshTokenSignatureIsNil applies the IsNil predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureLT

func RefreshTokenSignatureLT(v string) predicate.OAuthToken

RefreshTokenSignatureLT applies the LT predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureLTE

func RefreshTokenSignatureLTE(v string) predicate.OAuthToken

RefreshTokenSignatureLTE applies the LTE predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureNEQ

func RefreshTokenSignatureNEQ(v string) predicate.OAuthToken

RefreshTokenSignatureNEQ applies the NEQ predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureNotIn

func RefreshTokenSignatureNotIn(vs ...string) predicate.OAuthToken

RefreshTokenSignatureNotIn applies the NotIn predicate on the "refresh_token_signature" field.

func RefreshTokenSignatureNotNil

func RefreshTokenSignatureNotNil() predicate.OAuthToken

RefreshTokenSignatureNotNil applies the NotNil predicate on the "refresh_token_signature" field.

func RequestData

func RequestData(v string) predicate.OAuthToken

RequestData applies equality check predicate on the "request_data" field. It's identical to RequestDataEQ.

func RequestDataContains

func RequestDataContains(v string) predicate.OAuthToken

RequestDataContains applies the Contains predicate on the "request_data" field.

func RequestDataContainsFold

func RequestDataContainsFold(v string) predicate.OAuthToken

RequestDataContainsFold applies the ContainsFold predicate on the "request_data" field.

func RequestDataEQ

func RequestDataEQ(v string) predicate.OAuthToken

RequestDataEQ applies the EQ predicate on the "request_data" field.

func RequestDataEqualFold

func RequestDataEqualFold(v string) predicate.OAuthToken

RequestDataEqualFold applies the EqualFold predicate on the "request_data" field.

func RequestDataGT

func RequestDataGT(v string) predicate.OAuthToken

RequestDataGT applies the GT predicate on the "request_data" field.

func RequestDataGTE

func RequestDataGTE(v string) predicate.OAuthToken

RequestDataGTE applies the GTE predicate on the "request_data" field.

func RequestDataHasPrefix

func RequestDataHasPrefix(v string) predicate.OAuthToken

RequestDataHasPrefix applies the HasPrefix predicate on the "request_data" field.

func RequestDataHasSuffix

func RequestDataHasSuffix(v string) predicate.OAuthToken

RequestDataHasSuffix applies the HasSuffix predicate on the "request_data" field.

func RequestDataIn

func RequestDataIn(vs ...string) predicate.OAuthToken

RequestDataIn applies the In predicate on the "request_data" field.

func RequestDataIsNil

func RequestDataIsNil() predicate.OAuthToken

RequestDataIsNil applies the IsNil predicate on the "request_data" field.

func RequestDataLT

func RequestDataLT(v string) predicate.OAuthToken

RequestDataLT applies the LT predicate on the "request_data" field.

func RequestDataLTE

func RequestDataLTE(v string) predicate.OAuthToken

RequestDataLTE applies the LTE predicate on the "request_data" field.

func RequestDataNEQ

func RequestDataNEQ(v string) predicate.OAuthToken

RequestDataNEQ applies the NEQ predicate on the "request_data" field.

func RequestDataNotIn

func RequestDataNotIn(vs ...string) predicate.OAuthToken

RequestDataNotIn applies the NotIn predicate on the "request_data" field.

func RequestDataNotNil

func RequestDataNotNil() predicate.OAuthToken

RequestDataNotNil applies the NotNil predicate on the "request_data" field.

func Revoked

func Revoked(v bool) predicate.OAuthToken

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

func RevokedAt

func RevokedAt(v time.Time) predicate.OAuthToken

RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.OAuthToken

RevokedAtEQ applies the EQ predicate on the "revoked_at" field.

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.OAuthToken

RevokedAtGT applies the GT predicate on the "revoked_at" field.

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.OAuthToken

RevokedAtGTE applies the GTE predicate on the "revoked_at" field.

func RevokedAtIn

func RevokedAtIn(vs ...time.Time) predicate.OAuthToken

RevokedAtIn applies the In predicate on the "revoked_at" field.

func RevokedAtIsNil

func RevokedAtIsNil() predicate.OAuthToken

RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.OAuthToken

RevokedAtLT applies the LT predicate on the "revoked_at" field.

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.OAuthToken

RevokedAtLTE applies the LTE predicate on the "revoked_at" field.

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.OAuthToken

RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.

func RevokedAtNotIn

func RevokedAtNotIn(vs ...time.Time) predicate.OAuthToken

RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.

func RevokedAtNotNil

func RevokedAtNotNil() predicate.OAuthToken

RevokedAtNotNil applies the NotNil predicate on the "revoked_at" field.

func RevokedEQ

func RevokedEQ(v bool) predicate.OAuthToken

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

func RevokedNEQ

func RevokedNEQ(v bool) predicate.OAuthToken

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

func RevokedReason

func RevokedReason(v string) predicate.OAuthToken

RevokedReason applies equality check predicate on the "revoked_reason" field. It's identical to RevokedReasonEQ.

func RevokedReasonContains

func RevokedReasonContains(v string) predicate.OAuthToken

RevokedReasonContains applies the Contains predicate on the "revoked_reason" field.

func RevokedReasonContainsFold

func RevokedReasonContainsFold(v string) predicate.OAuthToken

RevokedReasonContainsFold applies the ContainsFold predicate on the "revoked_reason" field.

func RevokedReasonEQ

func RevokedReasonEQ(v string) predicate.OAuthToken

RevokedReasonEQ applies the EQ predicate on the "revoked_reason" field.

func RevokedReasonEqualFold

func RevokedReasonEqualFold(v string) predicate.OAuthToken

RevokedReasonEqualFold applies the EqualFold predicate on the "revoked_reason" field.

func RevokedReasonGT

func RevokedReasonGT(v string) predicate.OAuthToken

RevokedReasonGT applies the GT predicate on the "revoked_reason" field.

func RevokedReasonGTE

func RevokedReasonGTE(v string) predicate.OAuthToken

RevokedReasonGTE applies the GTE predicate on the "revoked_reason" field.

func RevokedReasonHasPrefix

func RevokedReasonHasPrefix(v string) predicate.OAuthToken

RevokedReasonHasPrefix applies the HasPrefix predicate on the "revoked_reason" field.

func RevokedReasonHasSuffix

func RevokedReasonHasSuffix(v string) predicate.OAuthToken

RevokedReasonHasSuffix applies the HasSuffix predicate on the "revoked_reason" field.

func RevokedReasonIn

func RevokedReasonIn(vs ...string) predicate.OAuthToken

RevokedReasonIn applies the In predicate on the "revoked_reason" field.

func RevokedReasonIsNil

func RevokedReasonIsNil() predicate.OAuthToken

RevokedReasonIsNil applies the IsNil predicate on the "revoked_reason" field.

func RevokedReasonLT

func RevokedReasonLT(v string) predicate.OAuthToken

RevokedReasonLT applies the LT predicate on the "revoked_reason" field.

func RevokedReasonLTE

func RevokedReasonLTE(v string) predicate.OAuthToken

RevokedReasonLTE applies the LTE predicate on the "revoked_reason" field.

func RevokedReasonNEQ

func RevokedReasonNEQ(v string) predicate.OAuthToken

RevokedReasonNEQ applies the NEQ predicate on the "revoked_reason" field.

func RevokedReasonNotIn

func RevokedReasonNotIn(vs ...string) predicate.OAuthToken

RevokedReasonNotIn applies the NotIn predicate on the "revoked_reason" field.

func RevokedReasonNotNil

func RevokedReasonNotNil() predicate.OAuthToken

RevokedReasonNotNil applies the NotNil predicate on the "revoked_reason" field.

func ServiceAccountID

func ServiceAccountID(v uuid.UUID) predicate.OAuthToken

ServiceAccountID applies equality check predicate on the "service_account_id" field. It's identical to ServiceAccountIDEQ.

func ServiceAccountIDEQ

func ServiceAccountIDEQ(v uuid.UUID) predicate.OAuthToken

ServiceAccountIDEQ applies the EQ predicate on the "service_account_id" field.

func ServiceAccountIDGT

func ServiceAccountIDGT(v uuid.UUID) predicate.OAuthToken

ServiceAccountIDGT applies the GT predicate on the "service_account_id" field.

func ServiceAccountIDGTE

func ServiceAccountIDGTE(v uuid.UUID) predicate.OAuthToken

ServiceAccountIDGTE applies the GTE predicate on the "service_account_id" field.

func ServiceAccountIDIn

func ServiceAccountIDIn(vs ...uuid.UUID) predicate.OAuthToken

ServiceAccountIDIn applies the In predicate on the "service_account_id" field.

func ServiceAccountIDIsNil

func ServiceAccountIDIsNil() predicate.OAuthToken

ServiceAccountIDIsNil applies the IsNil predicate on the "service_account_id" field.

func ServiceAccountIDLT

func ServiceAccountIDLT(v uuid.UUID) predicate.OAuthToken

ServiceAccountIDLT applies the LT predicate on the "service_account_id" field.

func ServiceAccountIDLTE

func ServiceAccountIDLTE(v uuid.UUID) predicate.OAuthToken

ServiceAccountIDLTE applies the LTE predicate on the "service_account_id" field.

func ServiceAccountIDNEQ

func ServiceAccountIDNEQ(v uuid.UUID) predicate.OAuthToken

ServiceAccountIDNEQ applies the NEQ predicate on the "service_account_id" field.

func ServiceAccountIDNotIn

func ServiceAccountIDNotIn(vs ...uuid.UUID) predicate.OAuthToken

ServiceAccountIDNotIn applies the NotIn predicate on the "service_account_id" field.

func ServiceAccountIDNotNil

func ServiceAccountIDNotNil() predicate.OAuthToken

ServiceAccountIDNotNil applies the NotNil predicate on the "service_account_id" field.

func SessionID

func SessionID(v string) predicate.OAuthToken

SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.

func SessionIDContains

func SessionIDContains(v string) predicate.OAuthToken

SessionIDContains applies the Contains predicate on the "session_id" field.

func SessionIDContainsFold

func SessionIDContainsFold(v string) predicate.OAuthToken

SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.

func SessionIDEQ

func SessionIDEQ(v string) predicate.OAuthToken

SessionIDEQ applies the EQ predicate on the "session_id" field.

func SessionIDEqualFold

func SessionIDEqualFold(v string) predicate.OAuthToken

SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.

func SessionIDGT

func SessionIDGT(v string) predicate.OAuthToken

SessionIDGT applies the GT predicate on the "session_id" field.

func SessionIDGTE

func SessionIDGTE(v string) predicate.OAuthToken

SessionIDGTE applies the GTE predicate on the "session_id" field.

func SessionIDHasPrefix

func SessionIDHasPrefix(v string) predicate.OAuthToken

SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.

func SessionIDHasSuffix

func SessionIDHasSuffix(v string) predicate.OAuthToken

SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.

func SessionIDIn

func SessionIDIn(vs ...string) predicate.OAuthToken

SessionIDIn applies the In predicate on the "session_id" field.

func SessionIDIsNil

func SessionIDIsNil() predicate.OAuthToken

SessionIDIsNil applies the IsNil predicate on the "session_id" field.

func SessionIDLT

func SessionIDLT(v string) predicate.OAuthToken

SessionIDLT applies the LT predicate on the "session_id" field.

func SessionIDLTE

func SessionIDLTE(v string) predicate.OAuthToken

SessionIDLTE applies the LTE predicate on the "session_id" field.

func SessionIDNEQ

func SessionIDNEQ(v string) predicate.OAuthToken

SessionIDNEQ applies the NEQ predicate on the "session_id" field.

func SessionIDNotIn

func SessionIDNotIn(vs ...string) predicate.OAuthToken

SessionIDNotIn applies the NotIn predicate on the "session_id" field.

func SessionIDNotNil

func SessionIDNotNil() predicate.OAuthToken

SessionIDNotNil applies the NotNil predicate on the "session_id" field.

func UserAgent

func UserAgent(v string) predicate.OAuthToken

UserAgent applies equality check predicate on the "user_agent" field. It's identical to UserAgentEQ.

func UserAgentContains

func UserAgentContains(v string) predicate.OAuthToken

UserAgentContains applies the Contains predicate on the "user_agent" field.

func UserAgentContainsFold

func UserAgentContainsFold(v string) predicate.OAuthToken

UserAgentContainsFold applies the ContainsFold predicate on the "user_agent" field.

func UserAgentEQ

func UserAgentEQ(v string) predicate.OAuthToken

UserAgentEQ applies the EQ predicate on the "user_agent" field.

func UserAgentEqualFold

func UserAgentEqualFold(v string) predicate.OAuthToken

UserAgentEqualFold applies the EqualFold predicate on the "user_agent" field.

func UserAgentGT

func UserAgentGT(v string) predicate.OAuthToken

UserAgentGT applies the GT predicate on the "user_agent" field.

func UserAgentGTE

func UserAgentGTE(v string) predicate.OAuthToken

UserAgentGTE applies the GTE predicate on the "user_agent" field.

func UserAgentHasPrefix

func UserAgentHasPrefix(v string) predicate.OAuthToken

UserAgentHasPrefix applies the HasPrefix predicate on the "user_agent" field.

func UserAgentHasSuffix

func UserAgentHasSuffix(v string) predicate.OAuthToken

UserAgentHasSuffix applies the HasSuffix predicate on the "user_agent" field.

func UserAgentIn

func UserAgentIn(vs ...string) predicate.OAuthToken

UserAgentIn applies the In predicate on the "user_agent" field.

func UserAgentIsNil

func UserAgentIsNil() predicate.OAuthToken

UserAgentIsNil applies the IsNil predicate on the "user_agent" field.

func UserAgentLT

func UserAgentLT(v string) predicate.OAuthToken

UserAgentLT applies the LT predicate on the "user_agent" field.

func UserAgentLTE

func UserAgentLTE(v string) predicate.OAuthToken

UserAgentLTE applies the LTE predicate on the "user_agent" field.

func UserAgentNEQ

func UserAgentNEQ(v string) predicate.OAuthToken

UserAgentNEQ applies the NEQ predicate on the "user_agent" field.

func UserAgentNotIn

func UserAgentNotIn(vs ...string) predicate.OAuthToken

UserAgentNotIn applies the NotIn predicate on the "user_agent" field.

func UserAgentNotNil

func UserAgentNotNil() predicate.OAuthToken

UserAgentNotNil applies the NotNil predicate on the "user_agent" field.

func UserID

func UserID(v uuid.UUID) predicate.OAuthToken

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

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.OAuthToken

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

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.OAuthToken

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

func UserIDIsNil

func UserIDIsNil() predicate.OAuthToken

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

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.OAuthToken

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

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.OAuthToken

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

func UserIDNotNil

func UserIDNotNil() predicate.OAuthToken

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 OAuthToken queries.

func ByAccessExpiresAt

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

ByAccessExpiresAt orders the results by the access_expires_at field.

func ByAccessTokenSignature

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

ByAccessTokenSignature orders the results by the access_token_signature field.

func ByAppField

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

ByAppField orders the results by app field.

func ByAppID

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

ByAppID orders the results by the app_id field.

func ByClientIP

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

ByClientIP orders the results by the client_ip field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByFamilyID

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

ByFamilyID orders the results by the family_id field.

func ByID

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

ByID orders the results by the id field.

func ByLastUsedAt

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

ByLastUsedAt orders the results by the last_used_at field.

func ByRefreshExpiresAt

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

ByRefreshExpiresAt orders the results by the refresh_expires_at field.

func ByRefreshTokenSignature

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

ByRefreshTokenSignature orders the results by the refresh_token_signature field.

func ByRequestData

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

ByRequestData orders the results by the request_data field.

func ByRevoked

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

ByRevoked orders the results by the revoked field.

func ByRevokedAt

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

ByRevokedAt orders the results by the revoked_at field.

func ByRevokedReason

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

ByRevokedReason orders the results by the revoked_reason field.

func ByServiceAccountID

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

ByServiceAccountID orders the results by the service_account_id field.

func BySessionID

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

BySessionID orders the results by the session_id field.

func ByUserAgent

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

ByUserAgent orders the results by the user_agent 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