Documentation ¶
Index ¶
- type DataStore
- type MongoDBDataStore
- func (m *MongoDBDataStore) Create(ctx context.Context, collection string, data interface{}) error
- func (m *MongoDBDataStore) Delete(ctx context.Context, collection string, filter interface{}) error
- func (m *MongoDBDataStore) Read(ctx context.Context, collection string, filter interface{}, result interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDBDataStore ¶
type MongoDBDataStore struct {
// contains filtered or unexported fields
}
func GetMongoDBDataStoreInstance ¶
func GetMongoDBDataStoreInstance(uri, dbName string) (*MongoDBDataStore, error)
func (*MongoDBDataStore) Create ¶
func (m *MongoDBDataStore) Create(ctx context.Context, collection string, data interface{}) error
Click to show internal directories.
Click to hide internal directories.