-
Notifications
You must be signed in to change notification settings - Fork 30
Communication protocol
Jaume Martin edited this page Nov 22, 2017
·
7 revisions
Field | Type | Comment |
---|---|---|
ULID | String | Unique identifier |
CMD | Enum | Command |
Params | String | Parameters for the command |
Result | String | Command result |
Data | String | Extra field for commands or resutls |
Error | Boolean |
Endpoint Server
ULID: Nil, CMD: Register
+------------------------------------------------>
|
| Register + Generate ULID
ULID: ulid, Result: OK |
<------------------------------------------------+
ULID: ulid, CMD: Ping
+------------------------------------------------>
|
| Check schedule
ULID: ulid, CMD: Pong |
<------------------------------------------------+
ULID: ulid, CMD: Ping
+------------------------------------------------>
|
| Check schedule
ULID: ulid, CMD: Scan, Data: Rules |
<------------------------------------------------+
|
Execute |
command | ULID: ulid, CMD: Scan, Result: Result
+------------------------------------------------>
|
| Update report
ULID: ulid, CMD: nil, Data: ACK |
<------------------------------------------------+