Documentation ¶
Index ¶
- type MongoDBEngine
- func (e *MongoDBEngine) Close()
- func (e *MongoDBEngine) Del(attrName string, attrID interface{}) error
- func (e *MongoDBEngine) Exists(attrName string, attrID interface{}) (bool, error)
- func (e *MongoDBEngine) Insert(attrName string, attrID interface{}, data map[string]interface{}) error
- func (e *MongoDBEngine) IsEOF(err error) bool
- func (e *MongoDBEngine) Query(attrName string) (func() (attrID interface{}, data map[string]interface{}, hasMore bool), error)
- func (e *MongoDBEngine) Read(attrName string, attrID interface{}) (map[string]interface{}, error)
- func (e *MongoDBEngine) ReadAll(attrName string) ([]interface{ ... }, error)
- func (e *MongoDBEngine) Write(attrName string, attrID interface{}, data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDBEngine ¶
type MongoDBEngine struct {
// contains filtered or unexported fields
}
func OpenMongoDB ¶
func OpenMongoDB(addr, dbname, user, passowrd string) (*MongoDBEngine, error)
func (*MongoDBEngine) Close ¶
func (e *MongoDBEngine) Close()
func (*MongoDBEngine) Del ¶
func (e *MongoDBEngine) Del(attrName string, attrID interface{}) error
func (*MongoDBEngine) Exists ¶
func (e *MongoDBEngine) Exists(attrName string, attrID interface{}) (bool, error)
func (*MongoDBEngine) Insert ¶
func (e *MongoDBEngine) Insert(attrName string, attrID interface{}, data map[string]interface{}) error
func (*MongoDBEngine) IsEOF ¶
func (e *MongoDBEngine) IsEOF(err error) bool
func (*MongoDBEngine) Query ¶
func (e *MongoDBEngine) Query(attrName string) (func() (attrID interface{}, data map[string]interface{}, hasMore bool), error)
func (*MongoDBEngine) Read ¶
func (e *MongoDBEngine) Read(attrName string, attrID interface{}) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.