Documentation
¶
Overview ¶
Package core provides the core BitDB implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChecksumMismatch = errors.New("checksum mismatch")
View Source
var ErrKeyNotFound = errors.New("key not found")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func SetupTempDB ¶
func (*DB) AbortOpen ¶
AbortOpen In case a failure happens during Open, we need to clean-up stuff opened so far. Keeping this separate from Close, which ensures graceful shutdown.
func (*DB) MergeErrors ¶
type Option ¶
type Option func(*DB)
func WithChecksumEnabled ¶
func WithMergeEnabled ¶
func WithMergeThreshold ¶
func WithOnMergeApply ¶
func WithOnMergeApply(f func()) Option
func WithOnMergeStart ¶
func WithOnMergeStart(f func()) Option
func WithRolloverThreshold ¶
Click to show internal directories.
Click to hide internal directories.