dbtype

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 3 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 InsertOIDCSession

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

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

type InsertSession

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

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

type InsertSessionUser added in v0.6.2

type InsertSessionUser struct {
	Username     string           `spanner:"Username"     db:"Username"`
	PasswordHash *securehash.Hash `spanner:"PasswordHash" db:"PasswordHash"`
	Disabled     bool             `spanner:"Disabled"     db:"Disabled"`
}

InsertSessionUser defines the structure for inserting new SessionUser 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 SessionUser

type SessionUser struct {
	ID           ccc.UUID         `spanner:"Id"           db:"Id"`
	Username     string           `spanner:"Username"     db:"Username"`
	PasswordHash *securehash.Hash `spanner:"PasswordHash" db:"PasswordHash"`
	Disabled     bool             `spanner:"Disabled"     db:"Disabled"`
}

SessionUser is a person authorized to access the application

Jump to

Keyboard shortcuts

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