controls-kt/controls-mongo
2021-12-16 23:14:32 +03:00
..
src/main/kotlin/ru/mipt/npm/controls/mongo Add some docs 2021-12-16 23:14:32 +03:00
build.gradle.kts Add storeInMongo for magix server 2021-12-16 17:25:35 +03:00
README.md Add some docs 2021-12-16 23:14:32 +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