sqlcgen

package
v1.67.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAuthCodeParams

type CreateAuthCodeParams struct {
	Signature          string
	RequestID          string
	ClientID           string
	Subject            string
	RequestedScopes    []string
	GrantedScopes      []string
	RequestedAudiences []string
	GrantedAudiences   []string
	FormData           string
	SessionData        []byte
	RequestedAt        pgtype.Timestamptz
	ExpiresAt          pgtype.Timestamptz
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type GetAuthCodeChallengeStateRow added in v1.52.0

type GetAuthCodeChallengeStateRow struct {
	Active              bool
	CodeChallenge       string
	CodeChallengeMethod string
}

type GetAuthCodeRow

type GetAuthCodeRow struct {
	Signature          string
	RequestID          string
	ClientID           string
	Subject            string
	RequestedScopes    []string
	GrantedScopes      []string
	RequestedAudiences []string
	GrantedAudiences   []string
	FormData           string
	SessionData        []byte
	Active             bool
	RequestedAt        pgtype.Timestamptz
	ExpiresAt          pgtype.Timestamptz
}

type InvalidateAuthCodesBySubjectAndClientParams added in v1.63.0

type InvalidateAuthCodesBySubjectAndClientParams struct {
	Subject  string
	ClientID string
}

type Querier

type Querier interface {
	CreateAuthCode(ctx context.Context, arg CreateAuthCodeParams) error
	GetAuthCode(ctx context.Context, signature string) (GetAuthCodeRow, error)
	GetAuthCodeChallengeState(ctx context.Context, signature string) (GetAuthCodeChallengeStateRow, error)
	InvalidateAuthCode(ctx context.Context, signature string) (int64, error)
	InvalidateAuthCodesBySubjectAndClient(ctx context.Context, arg InvalidateAuthCodesBySubjectAndClientParams) (int64, error)
	RestoreAuthCodeChallengeState(ctx context.Context, arg RestoreAuthCodeChallengeStateParams) (int64, error)
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) CreateAuthCode

func (q *Queries) CreateAuthCode(ctx context.Context, arg CreateAuthCodeParams) error

func (*Queries) GetAuthCode

func (q *Queries) GetAuthCode(ctx context.Context, signature string) (GetAuthCodeRow, error)

func (*Queries) GetAuthCodeChallengeState added in v1.52.0

func (q *Queries) GetAuthCodeChallengeState(ctx context.Context, signature string) (GetAuthCodeChallengeStateRow, error)

func (*Queries) InvalidateAuthCode

func (q *Queries) InvalidateAuthCode(ctx context.Context, signature string) (int64, error)

func (*Queries) InvalidateAuthCodesBySubjectAndClient added in v1.63.0

func (q *Queries) InvalidateAuthCodesBySubjectAndClient(ctx context.Context, arg InvalidateAuthCodesBySubjectAndClientParams) (int64, error)

func (*Queries) RestoreAuthCodeChallengeState added in v1.52.0

func (q *Queries) RestoreAuthCodeChallengeState(ctx context.Context, arg RestoreAuthCodeChallengeStateParams) (int64, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type RestoreAuthCodeChallengeStateParams added in v1.52.0

type RestoreAuthCodeChallengeStateParams struct {
	Signature           string
	Active              bool
	CodeChallenge       string
	CodeChallengeMethod string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL