Versions in this module Expand all Collapse all v3 v3.4.15 Feb 24, 2021 Changes in this version + func NewDefaultTmpBackend() (*backend, string) + func NewTmpBackend(batchInterval time.Duration, batchLimit int) (*backend, string) + type Backend interface + BatchTx func() BatchTx + Close func() error + ConcurrentReadTx func() ReadTx + Defrag func() error + ForceCommit func() + Hash func(ignores map[IgnoreKey]struct{}) (uint32, error) + OpenReadTxN func() int64 + ReadTx func() ReadTx + Size func() int64 + SizeInUse func() int64 + Snapshot func() Snapshot + func New(bcfg BackendConfig) Backend + func NewDefaultBackend(path string) Backend + type BackendConfig struct + BackendFreelistType bolt.FreelistType + BatchInterval time.Duration + BatchLimit int + Logger *zap.Logger + MmapSize uint64 + Path string + UnsafeNoFsync bool + func DefaultBackendConfig() BackendConfig + type BatchTx interface + Commit func() + CommitAndStop func() + UnsafeCreateBucket func(name []byte) + UnsafeDelete func(bucketName []byte, key []byte) + UnsafePut func(bucketName []byte, key []byte, value []byte) + UnsafeSeqPut func(bucketName []byte, key []byte, value []byte) + type IgnoreKey struct + Bucket string + Key string + type ReadTx interface + Lock func() + RLock func() + RUnlock func() + Unlock func() + UnsafeForEach func(bucketName []byte, visitor func(k, v []byte) error) error + UnsafeRange func(bucketName []byte, key, endKey []byte, limit int64) (keys [][]byte, vals [][]byte) + type Snapshot interface + Close func() error + Size func() int64 + WriteTo func(w io.Writer) (n int64, err error)