database

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: GPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 NewlruDB

func NewlruDB(size uint32) (storage.Persister, error)

NewlruDB creates a lruDB according to size

Types

type MemDB

type MemDB = memorydb.DB

MemDB represents the memory database storage. It holds a map of key value pairs and a mutex to handle concurrent accesses to the map

func NewMemDB

func NewMemDB() *MemDB

NewMemDB creates a new memorydb object

Jump to

Keyboard shortcuts

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