badgerutils

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateWithRetryOnConflict

func UpdateWithRetryOnConflict(db *badger.DB, fn func(txn *badger.Txn) error) error

Types

type OptsBuilder

type OptsBuilder struct {
	// contains filtered or unexported fields
}

func (OptsBuilder) ForPath

func (b OptsBuilder) ForPath(dbFilename string) badger.Options

func (OptsBuilder) WithEncryption

func (b OptsBuilder) WithEncryption(encryptionKey []byte, encryptionKeyRotationInterval time.Duration) OptsBuilder

Jump to

Keyboard shortcuts

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