Add superviserReception to rpc/superviser package
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 16 Feb 2018 13:51:07 +0000 (14:51 +0100)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Mon, 5 Mar 2018 17:30:26 +0000 (18:30 +0100)
commit8d6393282727b4720b5478227301ef4dbe1c6230
tree25966aae2580135b2a31090353787166e968430b
parentc7f83a02ba3f075c6403db8eb86d265688dbeb48
Add superviserReception to rpc/superviser package

boruta server requires IP address of the connected dryads to be saved
so that it can connect back to the Go RPC service they expose.

superviserReception wraps WorkerList in Superviser interface.
It saves IP address of a connection and registers a new Go RPC
service. The saved IP address is later used during call to Register.

Change-Id: I72f91d1c981e02ac13a07327b0b910e82a32fae9
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Reviewed-on: https://mcdsrvbld02.digital.local/review/49609
Reviewed-by: Maciej Wereski <m.wereski@partner.samsung.com>
Tested-by: Maciej Wereski <m.wereski@partner.samsung.com>
rpc/superviser/reception.go [new file with mode: 0644]
rpc/superviser/reception_test.go [new file with mode: 0644]
rpc/superviser/superviser_suite_test.go [new file with mode: 0644]