Help us shape the future of Go! Take the 2026 Go Developer Survey

oauthclient

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauthclient type in the database.
	Label = "oauth_client"
	// 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"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldRedirectUris holds the string denoting the redirect_uris field in the database.
	FieldRedirectUris = "redirect_uris"
	// FieldMetadataExpiresAt holds the string denoting the metadata_expires_at field in the database.
	FieldMetadataExpiresAt = "metadata_expires_at"
	// EdgeCodes holds the string denoting the codes edge name in mutations.
	EdgeCodes = "codes"
	// EdgeRefreshTokens holds the string denoting the refresh_tokens edge name in mutations.
	EdgeRefreshTokens = "refresh_tokens"
	// Table holds the table name of the oauthclient in the database.
	Table = "oauth_clients"
	// CodesTable is the table that holds the codes relation/edge.
	CodesTable = "oauth_codes"
	// CodesInverseTable is the table name for the OAuthCode entity.
	// It exists in this package in order to avoid circular dependency with the "oauthcode" package.
	CodesInverseTable = "oauth_codes"
	// CodesColumn is the table column denoting the codes relation/edge.
	CodesColumn = "client_id"
	// RefreshTokensTable is the table that holds the refresh_tokens relation/edge.
	RefreshTokensTable = "oauth_refresh_tokens"
	// RefreshTokensInverseTable is the table name for the OAuthRefreshToken entity.
	// It exists in this package in order to avoid circular dependency with the "oauthrefreshtoken" package.
	RefreshTokensInverseTable = "oauth_refresh_tokens"
	// RefreshTokensColumn is the table column denoting the refresh_tokens relation/edge.
	RefreshTokensColumn = "client_id"
)

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
	// ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save.
	ClientIDValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
)

Columns holds all SQL columns for oauthclient fields.

Functions

func And

func And(predicates ...predicate.OAuthClient) predicate.OAuthClient

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v string) predicate.OAuthClient

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

func ClientIDContains

func ClientIDContains(v string) predicate.OAuthClient

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

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.OAuthClient

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

func ClientIDEQ

func ClientIDEQ(v string) predicate.OAuthClient

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

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.OAuthClient

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

func ClientIDGT

func ClientIDGT(v string) predicate.OAuthClient

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

func ClientIDGTE

func ClientIDGTE(v string) predicate.OAuthClient

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

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.OAuthClient

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

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.OAuthClient

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

func ClientIDIn

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

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

func ClientIDLT

func ClientIDLT(v string) predicate.OAuthClient

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

func ClientIDLTE

func ClientIDLTE(v string) predicate.OAuthClient

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

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.OAuthClient

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

func ClientIDNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.OAuthClient

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OAuthClient

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OAuthClient

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OAuthClient

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OAuthClient

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OAuthClient

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OAuthClient

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

func CreatedAtNotIn

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

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

func HasCodes

func HasCodes() predicate.OAuthClient

HasCodes applies the HasEdge predicate on the "codes" edge.

func HasCodesWith

func HasCodesWith(preds ...predicate.OAuthCode) predicate.OAuthClient

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

func HasRefreshTokens

func HasRefreshTokens() predicate.OAuthClient

HasRefreshTokens applies the HasEdge predicate on the "refresh_tokens" edge.

func HasRefreshTokensWith

func HasRefreshTokensWith(preds ...predicate.OAuthRefreshToken) predicate.OAuthClient

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.OAuthClient

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.OAuthClient

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.OAuthClient

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.OAuthClient

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.OAuthClient

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.OAuthClient

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MetadataExpiresAt

func MetadataExpiresAt(v time.Time) predicate.OAuthClient

MetadataExpiresAt applies equality check predicate on the "metadata_expires_at" field. It's identical to MetadataExpiresAtEQ.

func MetadataExpiresAtEQ

func MetadataExpiresAtEQ(v time.Time) predicate.OAuthClient

MetadataExpiresAtEQ applies the EQ predicate on the "metadata_expires_at" field.

func MetadataExpiresAtGT

func MetadataExpiresAtGT(v time.Time) predicate.OAuthClient

MetadataExpiresAtGT applies the GT predicate on the "metadata_expires_at" field.

func MetadataExpiresAtGTE

func MetadataExpiresAtGTE(v time.Time) predicate.OAuthClient

MetadataExpiresAtGTE applies the GTE predicate on the "metadata_expires_at" field.

func MetadataExpiresAtIn

func MetadataExpiresAtIn(vs ...time.Time) predicate.OAuthClient

MetadataExpiresAtIn applies the In predicate on the "metadata_expires_at" field.

func MetadataExpiresAtIsNil

func MetadataExpiresAtIsNil() predicate.OAuthClient

MetadataExpiresAtIsNil applies the IsNil predicate on the "metadata_expires_at" field.

func MetadataExpiresAtLT

func MetadataExpiresAtLT(v time.Time) predicate.OAuthClient

MetadataExpiresAtLT applies the LT predicate on the "metadata_expires_at" field.

func MetadataExpiresAtLTE

func MetadataExpiresAtLTE(v time.Time) predicate.OAuthClient

MetadataExpiresAtLTE applies the LTE predicate on the "metadata_expires_at" field.

func MetadataExpiresAtNEQ

func MetadataExpiresAtNEQ(v time.Time) predicate.OAuthClient

MetadataExpiresAtNEQ applies the NEQ predicate on the "metadata_expires_at" field.

func MetadataExpiresAtNotIn

func MetadataExpiresAtNotIn(vs ...time.Time) predicate.OAuthClient

MetadataExpiresAtNotIn applies the NotIn predicate on the "metadata_expires_at" field.

func MetadataExpiresAtNotNil

func MetadataExpiresAtNotNil() predicate.OAuthClient

MetadataExpiresAtNotNil applies the NotNil predicate on the "metadata_expires_at" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.OAuthClient

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.OAuthClient

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.OAuthClient

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.OAuthClient

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.OAuthClient

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.OAuthClient

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.OAuthClient

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.OAuthClient

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.OAuthClient

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.OAuthClient

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.OAuthClient

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.OAuthClient

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.OAuthClient

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OAuthClient) predicate.OAuthClient

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OAuthClient

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OAuthClient

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OAuthClient

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OAuthClient

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OAuthClient

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OAuthClient

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OAuthClient

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

func UpdatedAtNotIn

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

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

func ByClientID

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

ByClientID orders the results by the client_id field.

func ByCodes

func ByCodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCodes orders the results by codes terms.

func ByCodesCount

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

ByCodesCount orders the results by codes count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByMetadataExpiresAt

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

ByMetadataExpiresAt orders the results by the metadata_expires_at field.

func ByName

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

ByName orders the results by the name field.

func ByRefreshTokens

func ByRefreshTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRefreshTokens orders the results by refresh_tokens terms.

func ByRefreshTokensCount

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

ByRefreshTokensCount orders the results by refresh_tokens count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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