storage

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrKeySize is returned when the symmetric key for the database is the incorrect size.
	ErrKeySize = errors.New("symmetric key for database is incorrect size")
	// ErrNotFound is returned when a record is not found.
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type JWKSetCustomKeyMeta

type JWKSetCustomKeyMeta struct {
	SigningDefault bool
}

JWKSetCustomKeyMeta is the custom metadata for a JWKSet key.

type MagicLinkCustomCreateArgs

type MagicLinkCustomCreateArgs struct {
	Expires time.Time
}

MagicLinkCustomCreateArgs is the custom arguments for creating a magic link.

type MagicLinkCustomReadResponse

type MagicLinkCustomReadResponse struct {
	Visited *time.Time
}

MagicLinkCustomReadResponse is the custom response for reading a magic link.

type ReadSigningKeyOptions

type ReadSigningKeyOptions struct {
	JWTAlg string
}

ReadSigningKeyOptions are the options for the ReadSigningKey method.

type Storage

Storage is the interface for magiclinksdev storage.

type Tx

type Tx interface {
	Commit(ctx context.Context) error
	Rollback(ctx context.Context) error
}

Tx is the interface for a transaction.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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