kvdb_mongo

package
v0.0.0-...-fae5011 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_DB_NAME = "goworld"
	VAL_KEY         = "_"
)

Variables

This section is empty.

Functions

func OpenMongoKVDB

func OpenMongoKVDB(url string, dbname string, collectionName string) (KVDBEngine, error)

Types

type MongoKVDB

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

func (*MongoKVDB) Close

func (kvdb *MongoKVDB) Close()

func (*MongoKVDB) Find

func (kvdb *MongoKVDB) Find(beginKey string, endKey string) Iterator

func (*MongoKVDB) Get

func (kvdb *MongoKVDB) Get(key string) (val string, err error)

func (*MongoKVDB) IsEOF

func (kvdb *MongoKVDB) IsEOF(err error) bool

func (*MongoKVDB) Put

func (kvdb *MongoKVDB) Put(key string, val string) error

type MongoKVIterator

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

func (*MongoKVIterator) Next

func (it *MongoKVIterator) Next() (KVItem, error)

Jump to

Keyboard shortcuts

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