Documentation ¶
Index ¶
- type MongoDatabase
- func (rd *MongoDatabase) Create(data interface{}) (interface{}, error)
- func (rd *MongoDatabase) Delete(data interface{}) (interface{}, error)
- func (md *MongoDatabase) Exists(data interface{}) bool
- func (rd *MongoDatabase) Get(data interface{}) (interface{}, error)
- func (rd *MongoDatabase) Update(data interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDatabase ¶
func NewMongoDBInstance ¶
func NewMongoDBInstance(log logger.Logger, config interface{}) (*MongoDatabase, error)
func (*MongoDatabase) Create ¶
func (rd *MongoDatabase) Create(data interface{}) (interface{}, error)
func (*MongoDatabase) Delete ¶
func (rd *MongoDatabase) Delete(data interface{}) (interface{}, error)
func (*MongoDatabase) Exists ¶
func (md *MongoDatabase) Exists(data interface{}) bool
func (*MongoDatabase) Get ¶
func (rd *MongoDatabase) Get(data interface{}) (interface{}, error)
func (*MongoDatabase) Update ¶
func (rd *MongoDatabase) Update(data interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.