store

package
v0.0.0-...-467d16e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package store contains all of the functions used to create and manage a state store

Package store - put.go implements how we store an item

Package store contains the backend data storage for our apps

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Put(namespace []byte, key []byte, value []byte) error
	Get(namespace []byte, key []byte) ([]byte, error)
	ForEach(namespace []byte, fun func([]byte, []byte) error) error
	CreateNamespace(namespace []byte) error
}

Backend implements the storage functionality for this apps

func NewLocalBackend

func NewLocalBackend() (Backend, error)

NewLocalBackend creates a new local datastore

Jump to

Keyboard shortcuts

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