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 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
Click to show internal directories.
Click to hide internal directories.