schema

package
v0.0.0-...-862781f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 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 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 InsertWebAuthnCredentialParams

type InsertWebAuthnCredentialParams struct {
	RawID      []byte    `json:"raw_id"`
	UserID     uuid.UUID `json:"user_id"`
	Credential []byte    `json:"credential"`
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) FindWebAuthnCredentialByUserID

func (q *Queries) FindWebAuthnCredentialByUserID(ctx context.Context, userID uuid.UUID) (WebauthnCredential, error)

func (*Queries) InsertUser

func (q *Queries) InsertUser(ctx context.Context, id uuid.UUID) (uuid.UUID, error)

func (*Queries) InsertWebAuthnCredential

func (q *Queries) InsertWebAuthnCredential(ctx context.Context, arg InsertWebAuthnCredentialParams) (WebauthnCredential, error)

func (*Queries) WithTx

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

type User

type User struct {
	ID uuid.UUID `json:"id"`
}

type WebauthnCredential

type WebauthnCredential struct {
	RawID      []byte    `json:"raw_id"`
	UserID     uuid.UUID `json:"user_id"`
	Credential []byte    `json:"credential"`
}

Jump to

Keyboard shortcuts

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