Categorygithub.com/omec-project/MongoDBLibrary
modulepackage
1.1.3
Repository: https://github.com/omec-project/mongodblibrary.git
Documentation: pkg.go.dev

# README

MongoDBLibrary

APIs to access mongoDB are defined in this repository.

testApp

Testapp in this repository builds a container of test application. All the APIs in the MongoDBLibrary are used by testApp. All new developement of MongoDBlibrary comes with correspondinig example in the testApp.

You can use AIAB ( Aether in a Box ) setup to run test application. Refer SD-Core document

Upcoming Work

  1. Provide More APIs to assign unique resources when multiple instances of Network Functions Supported
  2. APIs to lock database so that no 2 instances update the same database content.
  3. Add more APIs which will help cloud native application development.
  4. Deploy MongoDB with sharding.

# Packages

No description provided by the author

# Functions

No description provided by the author
Get id by inserting into collection.
Get id by inserting into collection.
For example IP addresses need to be assigned and then returned to be used again.
No description provided by the author
Get unique identity from counter collection.
Get a unique id within a given range.
Initialize pool of ids with max and min values and chunk size and amount of retries to get a chunk.
Initialize pool of ids with max and min values.
Initialize pool of ids with max and min values.
No description provided by the author
Release the provided id to the provided pool.
Release the provided id to the provided pool.
Release the provided id to the provided pool.
To create Index with common timeout for all documents, set timeout to desired value To create Index with custom timeout per document, set timeout to 0.
No description provided by the author
No description provided by the author
Use this API to drop TTL Index.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This API adds document to collection with name : "collName" This API should be used when we wish to update the timeout value for the TTL index It checks if an Index with name "indexName" exists on the collection.
Use this API to update timeout value for TTL Index.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This API adds document to collection with name : "collName" It also creates an Index with Time to live (TTL) on the collection.
No description provided by the author

# Variables

No description provided by the author