Documentation ¶
Index ¶
- type MongoBD
- func (m *MongoBD) Connect(uri string, database string) error
- func (m *MongoBD) CreateIndex(ctx context.Context, collectionName string, indexName string, unique bool) error
- func (m *MongoBD) CreateIndexes(opts []abstract.IndexOptions) error
- func (m *MongoBD) GetStorage(ctx *context.Context, store_name string) *mongo.Collection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoBD ¶
func (*MongoBD) CreateIndex ¶
func (m *MongoBD) CreateIndex(ctx context.Context, collectionName string, indexName string, unique bool) error
Метод создания индекса для коллекции
func (*MongoBD) CreateIndexes ¶
func (m *MongoBD) CreateIndexes(opts []abstract.IndexOptions) error
Метод создания индексов для коллекций
func (*MongoBD) GetStorage ¶
Метод для получения хранилища данных
Click to show internal directories.
Click to hide internal directories.