dbtype

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

dbtype is a package that 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"`
}

type InsertSessionOIDC

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

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"`
}

type SessionOIDC

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

Jump to

Keyboard shortcuts

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