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