mem

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewMemoryDatabase

func NewMemoryDatabase(concurrentReaders int) *Database

func (*Database) Close

func (db *Database) Close()

func (*Database) Update

func (db *Database) Update(fn func(tx dbpkg.Transaction) error) error

func (*Database) View

func (db *Database) View(fn func(tx dbpkg.Transaction) error) error

Jump to

Keyboard shortcuts

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