leveldb

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package leveldb provides a LevelDB-based implementation of store.Store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destroy

func Destroy(path string) error

Destroy removes all physical data of the database located at the given path.

func Open

func Open(path string, opts OpenOptions) (store.Store, error)

Open opens the database located at the given path.

This adds the following four stats for a syncbase service:

syncbase/leveldb/service/{hash}/file_count
syncbase/leveldb/service/{hash}/filesystem_bytes
syncbase/leveldb/blobmap/{hash}/file_count
syncbase/leveldb/blobmap/{hash}/filesystem_bytes

and the following two stats metrics per database:

syncbase/leveldb/db/{blessing}/{DB-name}/{hash}/file_count
syncbase/leveldb/db/{blessing}/{DB-name}/{hash}/filesystem_bytes

where {hash} is a hash of the file path of the store.

Types

type OpenOptions

type OpenOptions struct {
	CreateIfMissing bool
	ErrorIfExists   bool
	MaxOpenFiles    int
}

Jump to

Keyboard shortcuts

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