kvrepl

package module
v0.0.0-...-a4d885e Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: MIT Imports: 3 Imported by: 0

README

kvrepl

GoDoc
Go Report Card

A simple command line REPL (read-eval-print loop) that drives a simple in-memory key/value storage system. This system should also allow for nested transactions. A transaction can then be committed or aborted.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(s string, d *DB) (string, error)

Parse decides what commands to run and returns a string containing the value of a read or an error if one occurred.

Types

type DB

type DB struct {
	KV1 map[string]string
	KV2 map[string]string
	PKV bool
	// contains filtered or unexported fields
}

DB is struct defining two maps, pkv (points to kv) and nest, which aids figuring out how nested the commits are for current transaction

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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