Documentation
¶
Index ¶
- type Account
- type DBTX
- type GetCredentialRow
- type IsSessionVerifiedParams
- type MarkSessionVerifiedParams
- type Queries
- func (q *Queries) DeleteSessionVerification(ctx context.Context, sessionID string) error
- func (q *Queries) DeleteUserSessionVerifications(ctx context.Context, userID string) error
- func (q *Queries) GetCredential(ctx context.Context, id string) (GetCredentialRow, error)
- func (q *Queries) IsSessionVerified(ctx context.Context, arg IsSessionVerifiedParams) (bool, error)
- func (q *Queries) MarkSessionVerified(ctx context.Context, arg MarkSessionVerifiedParams) error
- func (q *Queries) UpdateCredential(ctx context.Context, arg UpdateCredentialParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Session
- type TotpSession
- type UpdateCredentialParams
- type User
- type Verification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Provider string `json:"provider"`
ProviderAccountID sql.NullString `json:"provider_account_id"`
PasswordHash sql.NullString `json:"password_hash"`
AccessToken sql.NullString `json:"access_token"`
RefreshToken sql.NullString `json:"refresh_token"`
ExpiresAt sql.NullString `json:"expires_at"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type GetCredentialRow ¶
type IsSessionVerifiedParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteSessionVerification ¶
func (*Queries) DeleteUserSessionVerifications ¶
func (*Queries) GetCredential ¶
TOTP credential and session queries
func (*Queries) IsSessionVerified ¶
func (*Queries) MarkSessionVerified ¶
func (q *Queries) MarkSessionVerified(ctx context.Context, arg MarkSessionVerifiedParams) error
func (*Queries) UpdateCredential ¶
func (q *Queries) UpdateCredential(ctx context.Context, arg UpdateCredentialParams) error
type Session ¶
type Session struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Token string `json:"token"`
RefreshToken sql.NullString `json:"refresh_token"`
ExpiresAt string `json:"expires_at"`
CreatedAt string `json:"created_at"`
IpAddress sql.NullString `json:"ip_address"`
UserAgent sql.NullString `json:"user_agent"`
}
type TotpSession ¶
type UpdateCredentialParams ¶
type UpdateCredentialParams struct {
TotpSecret sql.NullString `json:"totp_secret"`
TotpEnabled int64 `json:"totp_enabled"`
UpdatedAt string `json:"updated_at"`
ID string `json:"id"`
}
type User ¶
type User struct {
ID string `json:"id"`
Avatar sql.NullString `json:"avatar"`
Name string `json:"name"`
Email sql.NullString `json:"email"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Disabled int64 `json:"disabled"`
TotpSecret sql.NullString `json:"totp_secret"`
TotpEnabled int64 `json:"totp_enabled"`
}
Click to show internal directories.
Click to hide internal directories.