Documentation ¶
Index ¶
- func NewLevelDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *leveldb.DB, err error)
- func NewSerialDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *leveldb.SerialDB, err error)
- func NewShardIDProvider(numShards int32) (storage.ShardIDProvider, error)
- func NewShardedPersister(path string, persisterCreator storage.PersisterCreator, ...) (s storage.Persister, err error)
- func NewlruDB(size uint32) (storage.Persister, error)
- type MemDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLevelDB ¶
func NewLevelDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *leveldb.DB, err error)
NewLevelDB is a constructor for the leveldb persister It creates the files in the location given as parameter
func NewSerialDB ¶
func NewSerialDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *leveldb.SerialDB, err error)
NewSerialDB is a constructor for the leveldb persister It creates the files in the location given as parameter
func NewShardIDProvider ¶ added in v1.6.0
func NewShardIDProvider(numShards int32) (storage.ShardIDProvider, error)
NewShardIDProvider is a constructor for shard id provider
func NewShardedPersister ¶ added in v1.6.0
func NewShardedPersister(path string, persisterCreator storage.PersisterCreator, idPersister storage.ShardIDProvider) (s storage.Persister, err error)
NewShardedPersister is a constructor for sharded persister based on provided db type
Types ¶
Click to show internal directories.
Click to hide internal directories.