controls-kt/controls-mongo
2022-01-15 15:42:26 +03:00
..
src/main/kotlin/ru/mipt/npm/controls/mongo Refactor asynchronous storage api 2022-01-15 15:42:26 +03:00
build.gradle.kts Refactor asynchronous storage api 2022-01-15 15:42:26 +03:00
README.md Add some docs 2022-01-09 12:48:26 +03:00

Description

This module allows you to store DeviceMessages from certain DeviceManager or MagixMessages from magix server in mongoDB.

Usage

All usage examples can be found in VirtualCarController.

Storage from Device Manager

Just call storeMessagesInXodus. For more details, you can see comments in source code

Storage from Magix Server

Just pass such lambda as parameter to startMagixServer:

{ flow ->
    // some code
    storeInMongo(flow)
    // some code
}

For more details, you can see comments in source code