localdb

package
v0.7.18 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDB

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

func NewFileDB

func NewFileDB(filePath string) (*FileDB, error)

func (*FileDB) BatchSet

func (db *FileDB) BatchSet(pairs []types.KeyValue) (int, error)

func (*FileDB) Get

func (db *FileDB) Get(key string) (string, bool)

func (*FileDB) GetAll

func (db *FileDB) GetAll() []types.KeyValue

func (*FileDB) ScanGet

func (db *FileDB) ScanGet(key string) (types.KeyValue, bool)

func (*FileDB) Set

func (db *FileDB) Set(key, value string) error

Jump to

Keyboard shortcuts

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