Documentation ¶
Index ¶
- func AddCollectionIndex(dbName, collectionName string, indexModel mongo.IndexModel) error
- func CloseMongoConn()
- func CollectionExists(dbName, collectionName string) (bool, error)
- func CreateCappedCollection(dbName, collectionName string, maxDocuments, mb int64) error
- func GetConfiguredDevice(udid string) (*models.Device, error)
- func GetConfiguredDevices(providerName string) ([]*models.Device, error)
- func GetProviderFromDB(nickname string) (models.ProviderDB, error)
- func InitMongoClient(mongoDb string)
- func MongoClient() *mongo.Client
- func MongoCtx() context.Context
- func MongoCtxCancel() context.CancelFunc
- func UpsertDeviceDB(device models.Device) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCollectionIndex ¶
func AddCollectionIndex(dbName, collectionName string, indexModel mongo.IndexModel) error
func CloseMongoConn ¶
func CloseMongoConn()
func CollectionExists ¶
func CreateCappedCollection ¶
func GetConfiguredDevices ¶
func GetProviderFromDB ¶
func GetProviderFromDB(nickname string) (models.ProviderDB, error)
func InitMongoClient ¶
func InitMongoClient(mongoDb string)
func MongoClient ¶
func MongoCtxCancel ¶
func MongoCtxCancel() context.CancelFunc
func UpsertDeviceDB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.