Documentation
¶
Index ¶
- type CreateLoginChallengeParams
- type DBTX
- type LoginChallenge
- type Querier
- type Queries
- func (q *Queries) CreateLoginChallenge(ctx context.Context, arg CreateLoginChallengeParams) (LoginChallenge, error)
- func (q *Queries) DeleteAllLoginChallenges(ctx context.Context) error
- func (q *Queries) GetLoginChallengeByID(ctx context.Context, id string) (LoginChallenge, error)
- func (q *Queries) GetLoginChallengeByIDForUpdate(ctx context.Context, id string) (LoginChallenge, error)
- func (q *Queries) GetLoginChallengeByVerifierIDForUpdate(ctx context.Context, verifierID pgtype.Text) (LoginChallenge, error)
- func (q *Queries) UpdateLoginChallengeVerifier(ctx context.Context, arg UpdateLoginChallengeVerifierParams) (LoginChallenge, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateLoginChallengeVerifierParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginChallenge ¶
type LoginChallenge struct {
ID string
ClientID string
CodeChallenge string
CodeChallengeMethod string
ResponseType string
RequestedScopes []string
RedirectUri string
State string
CsrfToken string
CreatedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
VerifierID pgtype.Text
Subject pgtype.Text
Name pgtype.Text
Email pgtype.Text
VerifierExpiresAt pgtype.Timestamptz
Consumed bool
}
type Querier ¶
type Querier interface {
CreateLoginChallenge(ctx context.Context, arg CreateLoginChallengeParams) (LoginChallenge, error)
DeleteAllLoginChallenges(ctx context.Context) error
GetLoginChallengeByID(ctx context.Context, id string) (LoginChallenge, error)
GetLoginChallengeByIDForUpdate(ctx context.Context, id string) (LoginChallenge, error)
GetLoginChallengeByVerifierIDForUpdate(ctx context.Context, verifierID pgtype.Text) (LoginChallenge, error)
UpdateLoginChallengeVerifier(ctx context.Context, arg UpdateLoginChallengeVerifierParams) (LoginChallenge, error)
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateLoginChallenge ¶
func (q *Queries) CreateLoginChallenge(ctx context.Context, arg CreateLoginChallengeParams) (LoginChallenge, error)
func (*Queries) DeleteAllLoginChallenges ¶
func (*Queries) GetLoginChallengeByID ¶
func (*Queries) GetLoginChallengeByIDForUpdate ¶
func (*Queries) GetLoginChallengeByVerifierIDForUpdate ¶
func (*Queries) UpdateLoginChallengeVerifier ¶
func (q *Queries) UpdateLoginChallengeVerifier(ctx context.Context, arg UpdateLoginChallengeVerifierParams) (LoginChallenge, error)
Click to show internal directories.
Click to hide internal directories.