Documentation ¶
Index ¶
- Constants
- func OpenMongoDB(url string, dbname string) (EntityStorage, error)
- type MongoDBEntityStorge
- func (es *MongoDBEntityStorge) Close()
- func (es *MongoDBEntityStorge) Exists(typeName string, entityID common.EntityID) (bool, error)
- func (es *MongoDBEntityStorge) IsEOF(err error) bool
- func (es *MongoDBEntityStorge) List(typeName string) ([]common.EntityID, error)
- func (es *MongoDBEntityStorge) Read(typeName string, entityID common.EntityID) (interface{}, error)
- func (es *MongoDBEntityStorge) Write(typeName string, entityID common.EntityID, data interface{}) error
Constants ¶
View Source
const (
DEFAULT_DB_NAME = "goworld"
)
Variables ¶
This section is empty.
Functions ¶
func OpenMongoDB ¶
Types ¶
type MongoDBEntityStorge ¶
type MongoDBEntityStorge struct {
// contains filtered or unexported fields
}
func (*MongoDBEntityStorge) Close ¶
func (es *MongoDBEntityStorge) Close()
func (*MongoDBEntityStorge) IsEOF ¶
func (es *MongoDBEntityStorge) IsEOF(err error) bool
func (*MongoDBEntityStorge) List ¶
func (es *MongoDBEntityStorge) List(typeName string) ([]common.EntityID, error)
Click to show internal directories.
Click to hide internal directories.