Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCache = 1024 // 1 GiB DefaultHandles = 512 // files handles to leveldb open files DefaultBloomKeyBits = 2048 // bloom filter bits (256 bytes) DefaultCompactionTableSize = 8 // 8 MiB DefaultCompactionTotalSize = 32 // 32 MiB DefaultNoSync = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v1.1.3
type Builder interface { // set cache size SetCacheSize(int) Builder // set handles SetHandles(int) Builder // set bloom key bits SetBloomKeyBits(int) Builder // set compaction table size SetCompactionTableSize(int) Builder // set compaction table total size SetCompactionTotalSize(int) Builder // set no sync SetNoSync(bool) Builder // build the storage Build() (storage.Storage, error) }
func NewBuilder ¶ added in v1.1.3
NewBuilder creates the new leveldb storage builder
Click to show internal directories.
Click to hide internal directories.