dbtype

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dbtype contains types used by the database driver packages for session storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsertSession

type InsertSession struct {
	Username  string    `spanner:"Username"  db:"Username"`
	CreatedAt time.Time `spanner:"CreatedAt" db:"CreatedAt"`
	UpdatedAt time.Time `spanner:"UpdatedAt" db:"UpdatedAt"`
	Expired   bool      `spanner:"Expired"   db:"Expired"`
}

InsertSession defines the structure for inserting new session data into the database.

type InsertSessionOIDC

type InsertSessionOIDC struct {
	OidcSID string `spanner:"OidcSid" db:"OidcSid"`
	InsertSession
}

InsertSessionOIDC defines the structure for inserting new OIDC session data into the database.

type Session

type Session struct {
	ID        ccc.UUID  `spanner:"Id"        db:"Id"`
	Username  string    `spanner:"Username"  db:"Username"`
	CreatedAt time.Time `spanner:"CreatedAt" db:"CreatedAt"`
	UpdatedAt time.Time `spanner:"UpdatedAt" db:"UpdatedAt"`
	Expired   bool      `spanner:"Expired"   db:"Expired"`
}

Session defines the structure for storing session data in the database.

type SessionOIDC

type SessionOIDC struct {
	OidcSID string `spanner:"OidcSid" db:"OidcSid"`
	Session
}

SessionOIDC defines the structure for storing OIDC session data in the database.

Jump to

Keyboard shortcuts

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