storage

package
v0.0.0-...-0494022 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("password not found")
	ErrFull     = errors.New("storage is filled")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	Create(password []byte, expiresAt time.Time) (string, error)
	Get(id string) ([]byte, error)
	Delete(id string) error
	ClearExpired() error
}

func NewDirStore

func NewDirStore(path string) Store

func NewRamStore

func NewRamStore() Store

Jump to

Keyboard shortcuts

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