entity_storage_mongodb

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_DB_NAME = "goworld"
)

Variables

This section is empty.

Functions

func OpenMongoDB

func OpenMongoDB(url string, dbname string) (EntityStorage, error)

Types

type MongoDBEntityStorge

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

func (*MongoDBEntityStorge) Close

func (es *MongoDBEntityStorge) Close()

func (*MongoDBEntityStorge) Exists

func (es *MongoDBEntityStorge) Exists(typeName string, entityID common.EntityID) (bool, error)

func (*MongoDBEntityStorge) IsEOF

func (es *MongoDBEntityStorge) IsEOF(err error) bool

func (*MongoDBEntityStorge) List

func (es *MongoDBEntityStorge) List(typeName string) ([]common.EntityID, error)

func (*MongoDBEntityStorge) Read

func (es *MongoDBEntityStorge) Read(typeName string, entityID common.EntityID) (interface{}, error)

func (*MongoDBEntityStorge) Write

func (es *MongoDBEntityStorge) Write(typeName string, entityID common.EntityID, data interface{}) error

Jump to

Keyboard shortcuts

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