index

package
Version: v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Queue is a FIFO queue,

func New

func New(path string) (*Index, error)

New creates a new database.

func (*Index) Close

func (i *Index) Close() error

Close the underlying db file.

func (*Index) Delete

func (i *Index) Delete(hash string) error

func (*Index) Exists

func (i *Index) Exists(hash string) (bool, error)

func (*Index) Get

func (i *Index) Get(hash string) (string, error)

func (*Index) Index

func (i *Index) Index(plainHash, encryptedHash string) error

func (*Index) Remove

func (i *Index) Remove() error

Remove the underlying db file.

Source Files

Jump to

Keyboard shortcuts

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