indexdb

package
v0.0.0-...-53d1009 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2017 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexDB

type IndexDB struct {
	// contains filtered or unexported fields
}

IndexDB represets a C/C++ file database using leveldb.

func NewIndexDB

func NewIndexDB(root string) (*IndexDB, error)

NewIndexDB creates the project cache directory, open the leveldb db file on same location and return the new IndexDB.

func (*IndexDB) Close

func (i *IndexDB) Close() error

Close closes the leveldb.

func (*IndexDB) Get

func (i *IndexDB) Get(key []byte) ([]byte, error)

Get gets the selialized C/C++ files symbol data from leveldb. The key is using blake2b hashed filename.

func (*IndexDB) Has

func (i *IndexDB) Has(key []byte) bool

Has reports whether filename symbol data on leveldb. The key is using blake2b hashed filename.

func (*IndexDB) Put

func (i *IndexDB) Put(key []byte, value []byte) error

Put puts the selialized C/C++ files symbol data to leveldb. The key is using blake2b hashed filename.

Jump to

Keyboard shortcuts

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