Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.16.14
type Config struct {
// The data directory for the database
Dir string
// The name of the database
Name string
// The engine to use for the database
Engine Engine
// Logger to use for the database
Log log.Logger
// LevelDB specific configuration
CacheSize int
WriteBufferSize int
HandleCap int
BitsPerKey int
CompactionTableSize int
CompactionTableSizeMultiplier float64
CompactionTotalSize int
CompactionTotalSizeMultiplier float64
// Pebble specific configuration
BytesPerSync int
WALBytesPerSync int
MemTableStopWritesThreshold int
MemTableSize uint64
MaxOpenFiles int
MaxConcurrentCompactions func() int
}
Config contains database configuration
type DefaultFactory ¶ added in v1.16.14
type DefaultFactory struct{}
DefaultFactory is the default implementation of Factory
Click to show internal directories.
Click to hide internal directories.