database

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Unlock(password []byte) error
	Lock() error
	Tidy() error
	Set(fs.File) error
	Get(location string) (fs.File, error)
	Del(location string) error
	Iterator(prefix string, loadFileData bool) (Iterator, error)
}

func New

func New(databasePath string, verbose bool) (Database, error)

type Iterator

type Iterator interface {
	Channel() <-chan fs.File
	Close()
	Error() error
}

type IteratorCloseFunc

type IteratorCloseFunc func() error

Jump to

Keyboard shortcuts

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