datastore

package
v0.0.0-...-55fbde6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore interface {
	Save(key string, data interface{}, callback NoResultCallback)
	Find(queryStr string, callback ResultCallback)
	Remove(queryStr string, callback NoResultCallback)
	Update(queryStr string, update interface{}, callback NoResultCallback)
	FindAndUpdate(queryStr string, update interface{}, callback ResultCallback)
}

Datastore is an interface for possible datastores

type NoResultCallback

type NoResultCallback func(error)

NoResultCallback is a callback just expecting an error

type ResultCallback

type ResultCallback func([]byte, error)

ResultCallback is a callback that is expecting both a resulting data interface and an error

Directories

Path Synopsis
etcd
v2
v3

Jump to

Keyboard shortcuts

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