Documentation ¶ Index ¶ type Index func New(path string) (*Index, error) func (i *Index) Close() error func (i *Index) Delete(hash string) error func (i *Index) Exists(hash string) (bool, error) func (i *Index) Get(hash string) (string, error) func (i *Index) Index(plainHash, encryptedHash string) error func (i *Index) Remove() error 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 ¶ View all Source files index.go Click to show internal directories. Click to hide internal directories.