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 ¶
SessionOIDC defines the structure for storing OIDC session data in the database.
Click to show internal directories.
Click to hide internal directories.