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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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