browsersession

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the browsersession type in the database.
	Label = "browser_session"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldSessionHash holds the string denoting the session_hash field in the database.
	FieldSessionHash = "session_hash"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldIdleExpiresAt holds the string denoting the idle_expires_at field in the database.
	FieldIdleExpiresAt = "idle_expires_at"
	// FieldCsrfSecret holds the string denoting the csrf_secret field in the database.
	FieldCsrfSecret = "csrf_secret"
	// FieldUserAgentHash holds the string denoting the user_agent_hash field in the database.
	FieldUserAgentHash = "user_agent_hash"
	// FieldIPPrefix holds the string denoting the ip_prefix field in the database.
	FieldIPPrefix = "ip_prefix"
	// FieldRevokedAt holds the string denoting the revoked_at field in the database.
	FieldRevokedAt = "revoked_at"
	// 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"
	// Table holds the table name of the browsersession in the database.
	Table = "browser_sessions"
)

Variables

View Source
var (
	// SessionHashValidator is a validator for the "session_hash" field. It is called by the builders before save.
	SessionHashValidator func(string) error
	// CsrfSecretValidator is a validator for the "csrf_secret" field. It is called by the builders before save.
	CsrfSecretValidator func(string) error
	// DefaultUserAgentHash holds the default value on creation for the "user_agent_hash" field.
	DefaultUserAgentHash string
	// DefaultIPPrefix holds the default value on creation for the "ip_prefix" field.
	DefaultIPPrefix string
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for browsersession fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.BrowserSession

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.BrowserSession

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.BrowserSession

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.BrowserSession

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.BrowserSession

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BrowserSession

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BrowserSession

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

func CreatedAtNotIn

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

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

func CsrfSecret

func CsrfSecret(v string) predicate.BrowserSession

CsrfSecret applies equality check predicate on the "csrf_secret" field. It's identical to CsrfSecretEQ.

func CsrfSecretContains

func CsrfSecretContains(v string) predicate.BrowserSession

CsrfSecretContains applies the Contains predicate on the "csrf_secret" field.

func CsrfSecretContainsFold

func CsrfSecretContainsFold(v string) predicate.BrowserSession

CsrfSecretContainsFold applies the ContainsFold predicate on the "csrf_secret" field.

func CsrfSecretEQ

func CsrfSecretEQ(v string) predicate.BrowserSession

CsrfSecretEQ applies the EQ predicate on the "csrf_secret" field.

func CsrfSecretEqualFold

func CsrfSecretEqualFold(v string) predicate.BrowserSession

CsrfSecretEqualFold applies the EqualFold predicate on the "csrf_secret" field.

func CsrfSecretGT

func CsrfSecretGT(v string) predicate.BrowserSession

CsrfSecretGT applies the GT predicate on the "csrf_secret" field.

func CsrfSecretGTE

func CsrfSecretGTE(v string) predicate.BrowserSession

CsrfSecretGTE applies the GTE predicate on the "csrf_secret" field.

func CsrfSecretHasPrefix

func CsrfSecretHasPrefix(v string) predicate.BrowserSession

CsrfSecretHasPrefix applies the HasPrefix predicate on the "csrf_secret" field.

func CsrfSecretHasSuffix

func CsrfSecretHasSuffix(v string) predicate.BrowserSession

CsrfSecretHasSuffix applies the HasSuffix predicate on the "csrf_secret" field.

func CsrfSecretIn

func CsrfSecretIn(vs ...string) predicate.BrowserSession

CsrfSecretIn applies the In predicate on the "csrf_secret" field.

func CsrfSecretLT

func CsrfSecretLT(v string) predicate.BrowserSession

CsrfSecretLT applies the LT predicate on the "csrf_secret" field.

func CsrfSecretLTE

func CsrfSecretLTE(v string) predicate.BrowserSession

CsrfSecretLTE applies the LTE predicate on the "csrf_secret" field.

func CsrfSecretNEQ

func CsrfSecretNEQ(v string) predicate.BrowserSession

CsrfSecretNEQ applies the NEQ predicate on the "csrf_secret" field.

func CsrfSecretNotIn

func CsrfSecretNotIn(vs ...string) predicate.BrowserSession

CsrfSecretNotIn applies the NotIn predicate on the "csrf_secret" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.BrowserSession

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.BrowserSession

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.BrowserSession

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.BrowserSession

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

func ExpiresAtIn

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

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.BrowserSession

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.BrowserSession

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.BrowserSession

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

func ExpiresAtNotIn

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IPPrefix

func IPPrefix(v string) predicate.BrowserSession

IPPrefix applies equality check predicate on the "ip_prefix" field. It's identical to IPPrefixEQ.

func IPPrefixContains

func IPPrefixContains(v string) predicate.BrowserSession

IPPrefixContains applies the Contains predicate on the "ip_prefix" field.

func IPPrefixContainsFold

func IPPrefixContainsFold(v string) predicate.BrowserSession

IPPrefixContainsFold applies the ContainsFold predicate on the "ip_prefix" field.

func IPPrefixEQ

func IPPrefixEQ(v string) predicate.BrowserSession

IPPrefixEQ applies the EQ predicate on the "ip_prefix" field.

func IPPrefixEqualFold

func IPPrefixEqualFold(v string) predicate.BrowserSession

IPPrefixEqualFold applies the EqualFold predicate on the "ip_prefix" field.

func IPPrefixGT

func IPPrefixGT(v string) predicate.BrowserSession

IPPrefixGT applies the GT predicate on the "ip_prefix" field.

func IPPrefixGTE

func IPPrefixGTE(v string) predicate.BrowserSession

IPPrefixGTE applies the GTE predicate on the "ip_prefix" field.

func IPPrefixHasPrefix

func IPPrefixHasPrefix(v string) predicate.BrowserSession

IPPrefixHasPrefix applies the HasPrefix predicate on the "ip_prefix" field.

func IPPrefixHasSuffix

func IPPrefixHasSuffix(v string) predicate.BrowserSession

IPPrefixHasSuffix applies the HasSuffix predicate on the "ip_prefix" field.

func IPPrefixIn

func IPPrefixIn(vs ...string) predicate.BrowserSession

IPPrefixIn applies the In predicate on the "ip_prefix" field.

func IPPrefixLT

func IPPrefixLT(v string) predicate.BrowserSession

IPPrefixLT applies the LT predicate on the "ip_prefix" field.

func IPPrefixLTE

func IPPrefixLTE(v string) predicate.BrowserSession

IPPrefixLTE applies the LTE predicate on the "ip_prefix" field.

func IPPrefixNEQ

func IPPrefixNEQ(v string) predicate.BrowserSession

IPPrefixNEQ applies the NEQ predicate on the "ip_prefix" field.

func IPPrefixNotIn

func IPPrefixNotIn(vs ...string) predicate.BrowserSession

IPPrefixNotIn applies the NotIn predicate on the "ip_prefix" field.

func IdleExpiresAt

func IdleExpiresAt(v time.Time) predicate.BrowserSession

IdleExpiresAt applies equality check predicate on the "idle_expires_at" field. It's identical to IdleExpiresAtEQ.

func IdleExpiresAtEQ

func IdleExpiresAtEQ(v time.Time) predicate.BrowserSession

IdleExpiresAtEQ applies the EQ predicate on the "idle_expires_at" field.

func IdleExpiresAtGT

func IdleExpiresAtGT(v time.Time) predicate.BrowserSession

IdleExpiresAtGT applies the GT predicate on the "idle_expires_at" field.

func IdleExpiresAtGTE

func IdleExpiresAtGTE(v time.Time) predicate.BrowserSession

IdleExpiresAtGTE applies the GTE predicate on the "idle_expires_at" field.

func IdleExpiresAtIn

func IdleExpiresAtIn(vs ...time.Time) predicate.BrowserSession

IdleExpiresAtIn applies the In predicate on the "idle_expires_at" field.

func IdleExpiresAtLT

func IdleExpiresAtLT(v time.Time) predicate.BrowserSession

IdleExpiresAtLT applies the LT predicate on the "idle_expires_at" field.

func IdleExpiresAtLTE

func IdleExpiresAtLTE(v time.Time) predicate.BrowserSession

IdleExpiresAtLTE applies the LTE predicate on the "idle_expires_at" field.

func IdleExpiresAtNEQ

func IdleExpiresAtNEQ(v time.Time) predicate.BrowserSession

IdleExpiresAtNEQ applies the NEQ predicate on the "idle_expires_at" field.

func IdleExpiresAtNotIn

func IdleExpiresAtNotIn(vs ...time.Time) predicate.BrowserSession

IdleExpiresAtNotIn applies the NotIn predicate on the "idle_expires_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RevokedAt

func RevokedAt(v time.Time) predicate.BrowserSession

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

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.BrowserSession

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

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.BrowserSession

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

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.BrowserSession

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

func RevokedAtIn

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

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

func RevokedAtIsNil

func RevokedAtIsNil() predicate.BrowserSession

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

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.BrowserSession

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

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.BrowserSession

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

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.BrowserSession

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

func RevokedAtNotIn

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

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

func RevokedAtNotNil

func RevokedAtNotNil() predicate.BrowserSession

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

func SessionHash

func SessionHash(v string) predicate.BrowserSession

SessionHash applies equality check predicate on the "session_hash" field. It's identical to SessionHashEQ.

func SessionHashContains

func SessionHashContains(v string) predicate.BrowserSession

SessionHashContains applies the Contains predicate on the "session_hash" field.

func SessionHashContainsFold

func SessionHashContainsFold(v string) predicate.BrowserSession

SessionHashContainsFold applies the ContainsFold predicate on the "session_hash" field.

func SessionHashEQ

func SessionHashEQ(v string) predicate.BrowserSession

SessionHashEQ applies the EQ predicate on the "session_hash" field.

func SessionHashEqualFold

func SessionHashEqualFold(v string) predicate.BrowserSession

SessionHashEqualFold applies the EqualFold predicate on the "session_hash" field.

func SessionHashGT

func SessionHashGT(v string) predicate.BrowserSession

SessionHashGT applies the GT predicate on the "session_hash" field.

func SessionHashGTE

func SessionHashGTE(v string) predicate.BrowserSession

SessionHashGTE applies the GTE predicate on the "session_hash" field.

func SessionHashHasPrefix

func SessionHashHasPrefix(v string) predicate.BrowserSession

SessionHashHasPrefix applies the HasPrefix predicate on the "session_hash" field.

func SessionHashHasSuffix

func SessionHashHasSuffix(v string) predicate.BrowserSession

SessionHashHasSuffix applies the HasSuffix predicate on the "session_hash" field.

func SessionHashIn

func SessionHashIn(vs ...string) predicate.BrowserSession

SessionHashIn applies the In predicate on the "session_hash" field.

func SessionHashLT

func SessionHashLT(v string) predicate.BrowserSession

SessionHashLT applies the LT predicate on the "session_hash" field.

func SessionHashLTE

func SessionHashLTE(v string) predicate.BrowserSession

SessionHashLTE applies the LTE predicate on the "session_hash" field.

func SessionHashNEQ

func SessionHashNEQ(v string) predicate.BrowserSession

SessionHashNEQ applies the NEQ predicate on the "session_hash" field.

func SessionHashNotIn

func SessionHashNotIn(vs ...string) predicate.BrowserSession

SessionHashNotIn applies the NotIn predicate on the "session_hash" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.BrowserSession

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.BrowserSession

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.BrowserSession

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.BrowserSession

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.BrowserSession

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BrowserSession

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BrowserSession

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserAgentHash

func UserAgentHash(v string) predicate.BrowserSession

UserAgentHash applies equality check predicate on the "user_agent_hash" field. It's identical to UserAgentHashEQ.

func UserAgentHashContains

func UserAgentHashContains(v string) predicate.BrowserSession

UserAgentHashContains applies the Contains predicate on the "user_agent_hash" field.

func UserAgentHashContainsFold

func UserAgentHashContainsFold(v string) predicate.BrowserSession

UserAgentHashContainsFold applies the ContainsFold predicate on the "user_agent_hash" field.

func UserAgentHashEQ

func UserAgentHashEQ(v string) predicate.BrowserSession

UserAgentHashEQ applies the EQ predicate on the "user_agent_hash" field.

func UserAgentHashEqualFold

func UserAgentHashEqualFold(v string) predicate.BrowserSession

UserAgentHashEqualFold applies the EqualFold predicate on the "user_agent_hash" field.

func UserAgentHashGT

func UserAgentHashGT(v string) predicate.BrowserSession

UserAgentHashGT applies the GT predicate on the "user_agent_hash" field.

func UserAgentHashGTE

func UserAgentHashGTE(v string) predicate.BrowserSession

UserAgentHashGTE applies the GTE predicate on the "user_agent_hash" field.

func UserAgentHashHasPrefix

func UserAgentHashHasPrefix(v string) predicate.BrowserSession

UserAgentHashHasPrefix applies the HasPrefix predicate on the "user_agent_hash" field.

func UserAgentHashHasSuffix

func UserAgentHashHasSuffix(v string) predicate.BrowserSession

UserAgentHashHasSuffix applies the HasSuffix predicate on the "user_agent_hash" field.

func UserAgentHashIn

func UserAgentHashIn(vs ...string) predicate.BrowserSession

UserAgentHashIn applies the In predicate on the "user_agent_hash" field.

func UserAgentHashLT

func UserAgentHashLT(v string) predicate.BrowserSession

UserAgentHashLT applies the LT predicate on the "user_agent_hash" field.

func UserAgentHashLTE

func UserAgentHashLTE(v string) predicate.BrowserSession

UserAgentHashLTE applies the LTE predicate on the "user_agent_hash" field.

func UserAgentHashNEQ

func UserAgentHashNEQ(v string) predicate.BrowserSession

UserAgentHashNEQ applies the NEQ predicate on the "user_agent_hash" field.

func UserAgentHashNotIn

func UserAgentHashNotIn(vs ...string) predicate.BrowserSession

UserAgentHashNotIn applies the NotIn predicate on the "user_agent_hash" field.

func UserID

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

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.BrowserSession

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

func UserIDGT

func UserIDGT(v uuid.UUID) predicate.BrowserSession

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

func UserIDGTE

func UserIDGTE(v uuid.UUID) predicate.BrowserSession

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

func UserIDIn

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

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

func UserIDLT

func UserIDLT(v uuid.UUID) predicate.BrowserSession

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

func UserIDLTE

func UserIDLTE(v uuid.UUID) predicate.BrowserSession

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

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.BrowserSession

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

func UserIDNotIn

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

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

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCsrfSecret

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

ByCsrfSecret orders the results by the csrf_secret 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 ByIPPrefix

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

ByIPPrefix orders the results by the ip_prefix field.

func ByIdleExpiresAt

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

ByIdleExpiresAt orders the results by the idle_expires_at field.

func ByRevokedAt

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

ByRevokedAt orders the results by the revoked_at field.

func BySessionHash

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

BySessionHash orders the results by the session_hash field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserAgentHash

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

ByUserAgentHash orders the results by the user_agent_hash 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