Documentation ¶
Index ¶
- type CheckRemember2FATokenParams
- type Client
- type CommitSessionParams
- type CreateChangeEmailRequestParams
- type CreateClientParams
- type CreateOAuthTokenParams
- type CreatePasskeyParams
- type CreateRecoveryCodeParams
- type CreateRemember2FATokenParams
- type CreateTokenParams
- type CreateUserParams
- type DBTX
- type DeleteClientParams
- type DeleteOAuthTokenByUserParams
- type DeleteOAuthTokenParams
- type DeletePasskeyParams
- type DeleteRecoveryCodeParams
- type DeleteRemember2FATokenParams
- type DeleteRemember2FATokensParams
- type DeleteTokenParams
- type FindClientByUserAndIDParams
- type FindOAuthPermissionsParams
- type FindOAuthTokenParams
- type FindPasskeyParams
- type FindSessionParams
- type FindSessionsRow
- type FindTokenByValueParams
- type FindTokenParams
- type FindUserByChangeEmailTokenParams
- type GetOTPRow
- type InsertJWTKeysParams
- type Oauth
- type Passkey
- type Permission
- type Querier
- type Queries
- func (q *Queries) CheckRemember2FAToken(ctx context.Context, arg CheckRemember2FATokenParams) (bool, error)
- func (q *Queries) CommitSession(ctx context.Context, arg CommitSessionParams) error
- func (q *Queries) CountRecoveryCodes(ctx context.Context, userID string) (int64, error)
- func (q *Queries) CreateChangeEmailRequest(ctx context.Context, arg CreateChangeEmailRequestParams) (pgconn.CommandTag, error)
- func (q *Queries) CreateClient(ctx context.Context, arg CreateClientParams) (Client, error)
- func (q *Queries) CreateOAuthToken(ctx context.Context, arg CreateOAuthTokenParams) (Oauth, error)
- func (q *Queries) CreatePasskey(ctx context.Context, arg CreatePasskeyParams) (pgconn.CommandTag, error)
- func (q *Queries) CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error
- func (q *Queries) CreateRemember2FAToken(ctx context.Context, arg CreateRemember2FATokenParams) error
- func (q *Queries) CreateToken(ctx context.Context, arg CreateTokenParams) (Token, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteClient(ctx context.Context, arg DeleteClientParams) (pgconn.CommandTag, error)
- func (q *Queries) DeleteOAuthToken(ctx context.Context, arg DeleteOAuthTokenParams) (pgconn.CommandTag, error)
- func (q *Queries) DeleteOAuthTokenByUser(ctx context.Context, arg DeleteOAuthTokenByUserParams) error
- func (q *Queries) DeletePasskey(ctx context.Context, arg DeletePasskeyParams) (pgconn.CommandTag, error)
- func (q *Queries) DeleteRecoveryCode(ctx context.Context, arg DeleteRecoveryCodeParams) (pgconn.CommandTag, error)
- func (q *Queries) DeleteRecoveryCodes(ctx context.Context, userID string) (pgconn.CommandTag, error)
- func (q *Queries) DeleteRemember2FAToken(ctx context.Context, arg DeleteRemember2FATokenParams) (pgconn.CommandTag, error)
- func (q *Queries) DeleteRemember2FATokens(ctx context.Context, arg DeleteRemember2FATokensParams) (pgconn.CommandTag, error)
- func (q *Queries) DeleteSession(ctx context.Context, token string) error
- func (q *Queries) DeleteToken(ctx context.Context, arg DeleteTokenParams) (pgconn.CommandTag, error)
- func (q *Queries) DeleteUser(ctx context.Context, id string) (pgconn.CommandTag, error)
- func (q *Queries) FindClient(ctx context.Context, id string) (Client, error)
- func (q *Queries) FindClientByUser(ctx context.Context, userID string) ([]Client, error)
- func (q *Queries) FindClientByUserAndID(ctx context.Context, arg FindClientByUserAndIDParams) (Client, error)
- func (q *Queries) FindOAuthPermissions(ctx context.Context, arg FindOAuthPermissionsParams) (Permission, error)
- func (q *Queries) FindOAuthToken(ctx context.Context, arg FindOAuthTokenParams) (Oauth, error)
- func (q *Queries) FindPasskey(ctx context.Context, arg FindPasskeyParams) (Passkey, error)
- func (q *Queries) FindPasskeys(ctx context.Context, userID string) ([]Passkey, error)
- func (q *Queries) FindSession(ctx context.Context, arg FindSessionParams) ([]byte, error)
- func (q *Queries) FindSessions(ctx context.Context, now int64) ([]FindSessionsRow, error)
- func (q *Queries) FindToken(ctx context.Context, arg FindTokenParams) (Token, error)
- func (q *Queries) FindTokenByValue(ctx context.Context, arg FindTokenByValueParams) (Token, error)
- func (q *Queries) FindUser(ctx context.Context, id string) (User, error)
- func (q *Queries) FindUserByChangeEmailToken(ctx context.Context, arg FindUserByChangeEmailTokenParams) (User, error)
- func (q *Queries) FindUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) FindUsers(ctx context.Context) ([]User, error)
- func (q *Queries) GetJWTKeys(ctx context.Context) (RsaKey, error)
- func (q *Queries) GetOTP(ctx context.Context, id string) (GetOTPRow, error)
- func (q *Queries) GetUserPasswordHash(ctx context.Context, id string) ([]byte, error)
- func (q *Queries) InsertJWTKeys(ctx context.Context, arg InsertJWTKeysParams) error
- func (q *Queries) RevokeOAuthPermissions(ctx context.Context, arg RevokeOAuthPermissionsParams) (pgconn.CommandTag, error)
- func (q *Queries) SetOAuthPermissions(ctx context.Context, arg SetOAuthPermissionsParams) (Permission, error)
- func (q *Queries) SetOTPActive(ctx context.Context, arg SetOTPActiveParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdateAdminStatus(ctx context.Context, arg UpdateAdminStatusParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdateClient(ctx context.Context, arg UpdateClientParams) (Client, error)
- func (q *Queries) UpdateClientSecret(ctx context.Context, arg UpdateClientSecretParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdateEmail(ctx context.Context, arg UpdateEmailParams) (string, error)
- func (q *Queries) UpdateEmailConfirmed(ctx context.Context, arg UpdateEmailConfirmedParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdateOTP(ctx context.Context, arg UpdateOTPParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdatePasskey(ctx context.Context, arg UpdatePasskeyParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdatePasskeyCredential(ctx context.Context, arg UpdatePasskeyCredentialParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) (pgconn.CommandTag, error)
- func (q *Queries) UpdateUserName(ctx context.Context, arg UpdateUserNameParams) (pgconn.CommandTag, error)
- func (q *Queries) UseOAuthToken(ctx context.Context, arg UseOAuthTokenParams) (pgconn.CommandTag, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RecoveryCode
- type Remember2fa
- type RevokeOAuthPermissionsParams
- type RsaKey
- type Session
- type SetOAuthPermissionsParams
- type SetOTPActiveParams
- type Token
- type UpdateAdminStatusParams
- type UpdateClientParams
- type UpdateClientSecretParams
- type UpdateEmailConfirmedParams
- type UpdateEmailParams
- type UpdateOTPParams
- type UpdatePasskeyCredentialParams
- type UpdatePasskeyParams
- type UpdatePasswordParams
- type UpdateUserNameParams
- type UseOAuthTokenParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitSessionParams ¶
type CreateClientParams ¶
type CreateOAuthTokenParams ¶
type CreatePasskeyParams ¶
type CreateTokenParams ¶
type CreateUserParams ¶
type DeleteClientParams ¶
type DeleteOAuthTokenParams ¶
type DeletePasskeyParams ¶
type DeleteTokenParams ¶
type FindOAuthTokenParams ¶
type FindPasskeyParams ¶
type FindSessionParams ¶
type FindSessionsRow ¶
type FindTokenByValueParams ¶
type FindTokenParams ¶
type InsertJWTKeysParams ¶
type Permission ¶
type Querier ¶
type Querier interface { CheckRemember2FAToken(ctx context.Context, arg CheckRemember2FATokenParams) (bool, error) CommitSession(ctx context.Context, arg CommitSessionParams) error CountRecoveryCodes(ctx context.Context, userID string) (int64, error) CreateChangeEmailRequest(ctx context.Context, arg CreateChangeEmailRequestParams) (pgconn.CommandTag, error) CreateClient(ctx context.Context, arg CreateClientParams) (Client, error) CreateOAuthToken(ctx context.Context, arg CreateOAuthTokenParams) (Oauth, error) CreatePasskey(ctx context.Context, arg CreatePasskeyParams) (pgconn.CommandTag, error) CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error CreateRemember2FAToken(ctx context.Context, arg CreateRemember2FATokenParams) error CreateToken(ctx context.Context, arg CreateTokenParams) (Token, error) CreateUser(ctx context.Context, arg CreateUserParams) (User, error) DeleteClient(ctx context.Context, arg DeleteClientParams) (pgconn.CommandTag, error) DeleteOAuthToken(ctx context.Context, arg DeleteOAuthTokenParams) (pgconn.CommandTag, error) DeleteOAuthTokenByUser(ctx context.Context, arg DeleteOAuthTokenByUserParams) error DeletePasskey(ctx context.Context, arg DeletePasskeyParams) (pgconn.CommandTag, error) DeleteRecoveryCode(ctx context.Context, arg DeleteRecoveryCodeParams) (pgconn.CommandTag, error) DeleteRecoveryCodes(ctx context.Context, userID string) (pgconn.CommandTag, error) DeleteRemember2FAToken(ctx context.Context, arg DeleteRemember2FATokenParams) (pgconn.CommandTag, error) DeleteRemember2FATokens(ctx context.Context, arg DeleteRemember2FATokensParams) (pgconn.CommandTag, error) DeleteSession(ctx context.Context, token string) error DeleteToken(ctx context.Context, arg DeleteTokenParams) (pgconn.CommandTag, error) DeleteUser(ctx context.Context, id string) (pgconn.CommandTag, error) FindClient(ctx context.Context, id string) (Client, error) FindClientByUser(ctx context.Context, userID string) ([]Client, error) FindClientByUserAndID(ctx context.Context, arg FindClientByUserAndIDParams) (Client, error) FindOAuthPermissions(ctx context.Context, arg FindOAuthPermissionsParams) (Permission, error) FindOAuthToken(ctx context.Context, arg FindOAuthTokenParams) (Oauth, error) FindPasskey(ctx context.Context, arg FindPasskeyParams) (Passkey, error) FindPasskeys(ctx context.Context, userID string) ([]Passkey, error) FindSession(ctx context.Context, arg FindSessionParams) ([]byte, error) FindSessions(ctx context.Context, now int64) ([]FindSessionsRow, error) FindToken(ctx context.Context, arg FindTokenParams) (Token, error) FindTokenByValue(ctx context.Context, arg FindTokenByValueParams) (Token, error) FindUser(ctx context.Context, id string) (User, error) FindUserByChangeEmailToken(ctx context.Context, arg FindUserByChangeEmailTokenParams) (User, error) FindUserByEmail(ctx context.Context, email string) (User, error) FindUsers(ctx context.Context) ([]User, error) GetJWTKeys(ctx context.Context) (RsaKey, error) GetOTP(ctx context.Context, id string) (GetOTPRow, error) GetUserPasswordHash(ctx context.Context, id string) ([]byte, error) InsertJWTKeys(ctx context.Context, arg InsertJWTKeysParams) error RevokeOAuthPermissions(ctx context.Context, arg RevokeOAuthPermissionsParams) (pgconn.CommandTag, error) SetOAuthPermissions(ctx context.Context, arg SetOAuthPermissionsParams) (Permission, error) SetOTPActive(ctx context.Context, arg SetOTPActiveParams) (pgconn.CommandTag, error) UpdateAdminStatus(ctx context.Context, arg UpdateAdminStatusParams) (pgconn.CommandTag, error) UpdateClient(ctx context.Context, arg UpdateClientParams) (Client, error) UpdateClientSecret(ctx context.Context, arg UpdateClientSecretParams) (pgconn.CommandTag, error) UpdateEmail(ctx context.Context, arg UpdateEmailParams) (string, error) UpdateEmailConfirmed(ctx context.Context, arg UpdateEmailConfirmedParams) (pgconn.CommandTag, error) UpdateOTP(ctx context.Context, arg UpdateOTPParams) (pgconn.CommandTag, error) UpdatePasskey(ctx context.Context, arg UpdatePasskeyParams) (pgconn.CommandTag, error) UpdatePasskeyCredential(ctx context.Context, arg UpdatePasskeyCredentialParams) (pgconn.CommandTag, error) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) (pgconn.CommandTag, error) UpdateUserName(ctx context.Context, arg UpdateUserNameParams) (pgconn.CommandTag, error) UseOAuthToken(ctx context.Context, arg UseOAuthTokenParams) (pgconn.CommandTag, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CheckRemember2FAToken ¶
func (*Queries) CommitSession ¶
func (q *Queries) CommitSession(ctx context.Context, arg CommitSessionParams) error
func (*Queries) CountRecoveryCodes ¶
func (*Queries) CreateChangeEmailRequest ¶
func (q *Queries) CreateChangeEmailRequest(ctx context.Context, arg CreateChangeEmailRequestParams) (pgconn.CommandTag, error)
func (*Queries) CreateClient ¶
func (*Queries) CreateOAuthToken ¶
func (*Queries) CreatePasskey ¶
func (q *Queries) CreatePasskey(ctx context.Context, arg CreatePasskeyParams) (pgconn.CommandTag, error)
func (*Queries) CreateRecoveryCode ¶
func (q *Queries) CreateRecoveryCode(ctx context.Context, arg CreateRecoveryCodeParams) error
func (*Queries) CreateRemember2FAToken ¶
func (q *Queries) CreateRemember2FAToken(ctx context.Context, arg CreateRemember2FATokenParams) error
func (*Queries) CreateToken ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteClient ¶
func (q *Queries) DeleteClient(ctx context.Context, arg DeleteClientParams) (pgconn.CommandTag, error)
func (*Queries) DeleteOAuthToken ¶
func (q *Queries) DeleteOAuthToken(ctx context.Context, arg DeleteOAuthTokenParams) (pgconn.CommandTag, error)
func (*Queries) DeleteOAuthTokenByUser ¶
func (q *Queries) DeleteOAuthTokenByUser(ctx context.Context, arg DeleteOAuthTokenByUserParams) error
func (*Queries) DeletePasskey ¶
func (q *Queries) DeletePasskey(ctx context.Context, arg DeletePasskeyParams) (pgconn.CommandTag, error)
func (*Queries) DeleteRecoveryCode ¶
func (q *Queries) DeleteRecoveryCode(ctx context.Context, arg DeleteRecoveryCodeParams) (pgconn.CommandTag, error)
func (*Queries) DeleteRecoveryCodes ¶
func (*Queries) DeleteRemember2FAToken ¶
func (q *Queries) DeleteRemember2FAToken(ctx context.Context, arg DeleteRemember2FATokenParams) (pgconn.CommandTag, error)
func (*Queries) DeleteRemember2FATokens ¶
func (q *Queries) DeleteRemember2FATokens(ctx context.Context, arg DeleteRemember2FATokensParams) (pgconn.CommandTag, error)
func (*Queries) DeleteSession ¶
func (*Queries) DeleteToken ¶
func (q *Queries) DeleteToken(ctx context.Context, arg DeleteTokenParams) (pgconn.CommandTag, error)
func (*Queries) DeleteUser ¶
func (*Queries) FindClient ¶
func (*Queries) FindClientByUser ¶
func (*Queries) FindClientByUserAndID ¶
func (*Queries) FindOAuthPermissions ¶
func (q *Queries) FindOAuthPermissions(ctx context.Context, arg FindOAuthPermissionsParams) (Permission, error)
func (*Queries) FindOAuthToken ¶
func (*Queries) FindPasskey ¶
func (*Queries) FindPasskeys ¶
func (*Queries) FindSession ¶
func (*Queries) FindSessions ¶
func (*Queries) FindTokenByValue ¶
func (*Queries) FindUserByChangeEmailToken ¶
func (*Queries) FindUserByEmail ¶
func (*Queries) GetUserPasswordHash ¶
func (*Queries) InsertJWTKeys ¶
func (q *Queries) InsertJWTKeys(ctx context.Context, arg InsertJWTKeysParams) error
func (*Queries) RevokeOAuthPermissions ¶
func (q *Queries) RevokeOAuthPermissions(ctx context.Context, arg RevokeOAuthPermissionsParams) (pgconn.CommandTag, error)
func (*Queries) SetOAuthPermissions ¶
func (q *Queries) SetOAuthPermissions(ctx context.Context, arg SetOAuthPermissionsParams) (Permission, error)
func (*Queries) SetOTPActive ¶
func (q *Queries) SetOTPActive(ctx context.Context, arg SetOTPActiveParams) (pgconn.CommandTag, error)
func (*Queries) UpdateAdminStatus ¶
func (q *Queries) UpdateAdminStatus(ctx context.Context, arg UpdateAdminStatusParams) (pgconn.CommandTag, error)
func (*Queries) UpdateClient ¶
func (*Queries) UpdateClientSecret ¶
func (q *Queries) UpdateClientSecret(ctx context.Context, arg UpdateClientSecretParams) (pgconn.CommandTag, error)
func (*Queries) UpdateEmail ¶
func (*Queries) UpdateEmailConfirmed ¶
func (q *Queries) UpdateEmailConfirmed(ctx context.Context, arg UpdateEmailConfirmedParams) (pgconn.CommandTag, error)
func (*Queries) UpdateOTP ¶
func (q *Queries) UpdateOTP(ctx context.Context, arg UpdateOTPParams) (pgconn.CommandTag, error)
func (*Queries) UpdatePasskey ¶
func (q *Queries) UpdatePasskey(ctx context.Context, arg UpdatePasskeyParams) (pgconn.CommandTag, error)
func (*Queries) UpdatePasskeyCredential ¶
func (q *Queries) UpdatePasskeyCredential(ctx context.Context, arg UpdatePasskeyCredentialParams) (pgconn.CommandTag, error)
func (*Queries) UpdatePassword ¶
func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) (pgconn.CommandTag, error)
func (*Queries) UpdateUserName ¶
func (q *Queries) UpdateUserName(ctx context.Context, arg UpdateUserNameParams) (pgconn.CommandTag, error)
func (*Queries) UseOAuthToken ¶
func (q *Queries) UseOAuthToken(ctx context.Context, arg UseOAuthTokenParams) (pgconn.CommandTag, error)
type RecoveryCode ¶
type Remember2fa ¶
type SetOTPActiveParams ¶
type UpdateAdminStatusParams ¶
type UpdateClientParams ¶
type UpdateEmailParams ¶
type UpdateOTPParams ¶
type UpdatePasskeyParams ¶
type UpdatePasswordParams ¶
type UpdateUserNameParams ¶
type UseOAuthTokenParams ¶
Click to show internal directories.
Click to hide internal directories.