dao

package
v0.0.0-...-c6e12e2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasskeyNotFound = errors.New("passkey not found")
	ErrInvalidPasskey  = errors.New("invalid passkey")
)

Functions

This section is empty.

Types

type CreatePasskey

type CreatePasskey interface {
	Exec(ctx context.Context, id uuid.UUID, now time.Time, request *CreatePasskeyRequest) (*entities.Passkey, error)
}

func NewCreatePasskey

func NewCreatePasskey(database bun.IDB) CreatePasskey

type CreatePasskeyRequest

type CreatePasskeyRequest struct {
	Namespace string
	Passkey   string
	Reward    map[string]interface{}
	ExpiresAt *time.Time
}

type DeletePasskey

type DeletePasskey interface {
	Exec(ctx context.Context, request *DeletePasskeyRequest) (*entities.Passkey, error)
}

func NewDeletePasskey

func NewDeletePasskey(database bun.IDB) DeletePasskey

type DeletePasskeyRequest

type DeletePasskeyRequest struct {
	ID        uuid.UUID
	Namespace string
	RawKey    *string
}

type GetPasskey

type GetPasskey interface {
	Exec(ctx context.Context, request *GetPasskeyRequest) (*entities.Passkey, error)
}

func NewGetPasskey

func NewGetPasskey(database bun.IDB) GetPasskey

type GetPasskeyRequest

type GetPasskeyRequest struct {
	ID        uuid.UUID
	Namespace string
	RawKey    *string
}

type UpdatePasskey

type UpdatePasskey interface {
	Exec(ctx context.Context, id uuid.UUID, now time.Time, request *UpdatePasskeyRequest) (*entities.Passkey, error)
}

func NewUpdatePasskey

func NewUpdatePasskey(database bun.IDB) UpdatePasskey

type UpdatePasskeyRequest

type UpdatePasskeyRequest struct {
	Namespace string
	Passkey   string
	Reward    map[string]interface{}
	ExpiresAt *time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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