memoryengine

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine added in v0.7.0

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

Engine is a simple memory engine implementation that stores data in an in-memory Btree. It allows multiple readers and one single writer.

func NewEngine

func NewEngine() *Engine

NewEngine creates an in-memory engine.

func (*Engine) Begin added in v0.7.0

func (ng *Engine) Begin(writable bool) (engine.Transaction, error)

Begin creates a transaction.

func (*Engine) Close added in v0.7.0

func (ng *Engine) Close() error

Close the engine.

Jump to

Keyboard shortcuts

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