This Service provides a input for sending delivery guys to their job
At the moment, once the service receives a destination for a delivery job , at first, it tries to send a first free delivery guy at main controller.
if any delivery guy doesn't exist at there . main controller sends the nearest free delivery guy
moving to every unit for a delivery guy takes 1 second
In order to run the service follow the below instructions.
1- Install docker (installation manual)
2-
sudo docker build -t delivery .
3-
sudo docker run --rm -it delivery /bin/bash
After that you are in docker container
/app/minidelivery
Now you can enter a destination in blow format
-1 5
And the delivery guy goes for doing his job . you can send another one.
for testing, you can use this command at docker container
go test ./...
Good luck :)