From ae0e080f80994274dd776c2ce4514e177e7db7a2 Mon Sep 17 00:00:00 2001 From: postmannen Date: Fri, 5 Mar 2021 13:10:46 +0100 Subject: [PATCH] fixed procFuncs --- README.md | 2 ++ example/toShip1TwoMessages.json | 18 ++++++++++++++++ incommmingBuffer.db | Bin 32768 -> 65536 bytes process.go | 7 ++++++- publisher-services.go | 6 +++--- ringbuffer.go | 4 ++-- subscriberMethodTypes.go | 13 +++++++----- subscribers.go | 36 +++++++++++++++++--------------- 8 files changed, 58 insertions(+), 28 deletions(-) create mode 100644 example/toShip1TwoMessages.json diff --git a/README.md b/README.md index 5ab39e1..e28b2a5 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,8 @@ and for a shell command of type command to a host named "ship2" ## TODO +- FIX so it can handle multiple slices of input for inmsg.txt + - Add config file options to use when starting up the program for options. - Rename CLICommand to cli diff --git a/example/toShip1TwoMessages.json b/example/toShip1TwoMessages.json new file mode 100644 index 0000000..b260195 --- /dev/null +++ b/example/toShip1TwoMessages.json @@ -0,0 +1,18 @@ +[ + { + + "toNode": "ship1", + "data": ["bash","-c","netstat -an|grep -i listen"], + "method":"CLICommand", + "timeout":5, + "retries":10 + }, + { + + "toNode": "ship1", + "data": ["bash","-c","netstat -an|grep -i listen"], + "method":"CLICommand", + "timeout":5, + "retries":10 + } +] \ No newline at end of file diff --git a/incommmingBuffer.db b/incommmingBuffer.db index af5436d9bf0cdbcc3464b0331977bc33ca56b5ed..f68d5ec9735e5a570cc4b40dafa39b8a2afd320e 100644 GIT binary patch delta 250 zcmZo@U}|V!nP4Ho!2khW%n-WrlPcS%WkE`t6%97OL7Qhyn#2 zCU3^cdJ68$#s-FyD;%r@Bp4YOj13H`l{{UPtbmNkhaC3sDx?+V=PD$p=9LsB=4`HW zEajVIz{SWincF~?ksWB#b^b{XI+Jx2JVC~6u2AUUpA-O=4}i-jaLKcPoyY`rG1NT_ ftWZA097guZi~;hDteX`R?#pjBNVtGXOb`G7!YDhp delta 177 zcmZo@U}kj1anKKL0HpUfDyN4GlK%PZB^V@P;Z_cr)1O!GE4Ohyn$j z$vO_6%!Y;rn=2eT_$L`~F)~l)Hjv${QE-EQl7kMT-DF(_50L!i3I!_xZlEEC2A0)I uo-RsOK*r=l3VSwpE0*$2OyHdqz%`kxKy0!?00%^O0+`RpvRSd