refreshtoken

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the refreshtoken type in the database.
	Label = "refresh_token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// FieldUserAgent holds the string denoting the user_agent field in the database.
	FieldUserAgent = "user_agent"
	// FieldIPAddress holds the string denoting the ip_address field in the database.
	FieldIPAddress = "ip_address"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeAccessTokens holds the string denoting the access_tokens edge name in mutations.
	EdgeAccessTokens = "access_tokens"
	// Table holds the table name of the refreshtoken in the database.
	Table = "refresh_tokens"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "refresh_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_id"
	// AccessTokensTable is the table that holds the access_tokens relation/edge.
	AccessTokensTable = "access_tokens"
	// AccessTokensInverseTable is the table name for the AccessToken entity.
	// It exists in this package in order to avoid circular dependency with the "accesstoken" package.
	AccessTokensInverseTable = "access_tokens"
	// AccessTokensColumn is the table column denoting the access_tokens relation/edge.
	AccessTokensColumn = "refresh_token_id"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for refreshtoken fields.

Functions

func And

func And(predicates ...predicate.RefreshToken) predicate.RefreshToken

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.RefreshToken

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.RefreshToken

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.RefreshToken

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.RefreshToken

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.RefreshToken

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.RefreshToken

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.RefreshToken

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.RefreshToken

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.RefreshToken

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Expiry

func Expiry(v time.Time) predicate.RefreshToken

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.RefreshToken

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.RefreshToken

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.RefreshToken

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

func ExpiryIn(vs ...time.Time) predicate.RefreshToken

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryIsNil

func ExpiryIsNil() predicate.RefreshToken

ExpiryIsNil applies the IsNil predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.RefreshToken

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.RefreshToken

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.RefreshToken

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

func ExpiryNotIn(vs ...time.Time) predicate.RefreshToken

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func ExpiryNotNil

func ExpiryNotNil() predicate.RefreshToken

ExpiryNotNil applies the NotNil predicate on the "expiry" field.

func HasAccessTokens

func HasAccessTokens() predicate.RefreshToken

HasAccessTokens applies the HasEdge predicate on the "access_tokens" edge.

func HasAccessTokensWith

func HasAccessTokensWith(preds ...predicate.AccessToken) predicate.RefreshToken

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

func HasUser

func HasUser() predicate.RefreshToken

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

func HasUserWith

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

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 uint) predicate.RefreshToken

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint) predicate.RefreshToken

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint) predicate.RefreshToken

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint) predicate.RefreshToken

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint) predicate.RefreshToken

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint) predicate.RefreshToken

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint) predicate.RefreshToken

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint) predicate.RefreshToken

IDNotIn applies the NotIn predicate on the ID field.

func IPAddress

func IPAddress(v string) predicate.RefreshToken

IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.

func IPAddressContains

func IPAddressContains(v string) predicate.RefreshToken

IPAddressContains applies the Contains predicate on the "ip_address" field.

func IPAddressContainsFold

func IPAddressContainsFold(v string) predicate.RefreshToken

IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.

func IPAddressEQ

func IPAddressEQ(v string) predicate.RefreshToken

IPAddressEQ applies the EQ predicate on the "ip_address" field.

func IPAddressEqualFold

func IPAddressEqualFold(v string) predicate.RefreshToken

IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.

func IPAddressGT

func IPAddressGT(v string) predicate.RefreshToken

IPAddressGT applies the GT predicate on the "ip_address" field.

func IPAddressGTE

func IPAddressGTE(v string) predicate.RefreshToken

IPAddressGTE applies the GTE predicate on the "ip_address" field.

func IPAddressHasPrefix

func IPAddressHasPrefix(v string) predicate.RefreshToken

IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.

func IPAddressHasSuffix

func IPAddressHasSuffix(v string) predicate.RefreshToken

IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.

func IPAddressIn

func IPAddressIn(vs ...string) predicate.RefreshToken

IPAddressIn applies the In predicate on the "ip_address" field.

func IPAddressIsNil

func IPAddressIsNil() predicate.RefreshToken

IPAddressIsNil applies the IsNil predicate on the "ip_address" field.

func IPAddressLT

func IPAddressLT(v string) predicate.RefreshToken

IPAddressLT applies the LT predicate on the "ip_address" field.

func IPAddressLTE

func IPAddressLTE(v string) predicate.RefreshToken

IPAddressLTE applies the LTE predicate on the "ip_address" field.

func IPAddressNEQ

func IPAddressNEQ(v string) predicate.RefreshToken

IPAddressNEQ applies the NEQ predicate on the "ip_address" field.

func IPAddressNotIn

func IPAddressNotIn(vs ...string) predicate.RefreshToken

IPAddressNotIn applies the NotIn predicate on the "ip_address" field.

func IPAddressNotNil

func IPAddressNotNil() predicate.RefreshToken

IPAddressNotNil applies the NotNil predicate on the "ip_address" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.RefreshToken) predicate.RefreshToken

Or groups predicates with the OR operator between them.

func Token

func Token(v string) predicate.RefreshToken

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.RefreshToken

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.RefreshToken

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.RefreshToken

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.RefreshToken

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.RefreshToken

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.RefreshToken

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.RefreshToken

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.RefreshToken

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.RefreshToken

TokenIn applies the In predicate on the "token" field.

func TokenIsNil

func TokenIsNil() predicate.RefreshToken

TokenIsNil applies the IsNil predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.RefreshToken

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.RefreshToken

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.RefreshToken

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.RefreshToken

TokenNotIn applies the NotIn predicate on the "token" field.

func TokenNotNil

func TokenNotNil() predicate.RefreshToken

TokenNotNil applies the NotNil predicate on the "token" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.RefreshToken

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.RefreshToken

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.RefreshToken

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.RefreshToken

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.RefreshToken

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.RefreshToken

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.RefreshToken

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.RefreshToken

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.RefreshToken

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserAgent

func UserAgent(v string) predicate.RefreshToken

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

func UserAgentContains

func UserAgentContains(v string) predicate.RefreshToken

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

func UserAgentContainsFold

func UserAgentContainsFold(v string) predicate.RefreshToken

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

func UserAgentEQ

func UserAgentEQ(v string) predicate.RefreshToken

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

func UserAgentEqualFold

func UserAgentEqualFold(v string) predicate.RefreshToken

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

func UserAgentGT

func UserAgentGT(v string) predicate.RefreshToken

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

func UserAgentGTE

func UserAgentGTE(v string) predicate.RefreshToken

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

func UserAgentHasPrefix

func UserAgentHasPrefix(v string) predicate.RefreshToken

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

func UserAgentHasSuffix

func UserAgentHasSuffix(v string) predicate.RefreshToken

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

func UserAgentIn

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

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

func UserAgentIsNil

func UserAgentIsNil() predicate.RefreshToken

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

func UserAgentLT

func UserAgentLT(v string) predicate.RefreshToken

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

func UserAgentLTE

func UserAgentLTE(v string) predicate.RefreshToken

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

func UserAgentNEQ

func UserAgentNEQ(v string) predicate.RefreshToken

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

func UserAgentNotIn

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

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

func UserAgentNotNil

func UserAgentNotNil() predicate.RefreshToken

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

func UserID

func UserID(v uuid.UUID) predicate.RefreshToken

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

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.RefreshToken

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

func UserIDIn

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

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

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.RefreshToken

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

func UserIDNotIn

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

UserIDNotIn applies the NotIn 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 RefreshToken queries.

func ByAccessTokens

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

ByAccessTokens orders the results by access_tokens terms.

func ByAccessTokensCount

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

ByAccessTokensCount orders the results by access_tokens count.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByExpiry

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

ByExpiry orders the results by the expiry field.

func ByID

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

ByID orders the results by the id field.

func ByIPAddress

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

ByIPAddress orders the results by the ip_address field.

func ByToken

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

ByToken orders the results by the token field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time 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