From 4f90f3723976d833035c2ad305d266fa770cb557 Mon Sep 17 00:00:00 2001 From: "Guy M. Allard" Date: Sun, 22 Oct 2017 11:29:45 -0400 Subject: [PATCH] Demo some examples in *nix. --- cmd/runall/some.cmd | 2 ++ cmd/runall/some.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 cmd/runall/some.cmd create mode 100755 cmd/runall/some.sh diff --git a/cmd/runall/some.cmd b/cmd/runall/some.cmd new file mode 100644 index 0000000..d19b3fb --- /dev/null +++ b/cmd/runall/some.cmd @@ -0,0 +1,2 @@ +@echo on +:: diff --git a/cmd/runall/some.sh b/cmd/runall/some.sh new file mode 100755 index 0000000..873051b --- /dev/null +++ b/cmd/runall/some.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# +# Demo _some_ of the stompngo examples. +# +SNGD=${SNGD:-/home/opt/gosrc/src/github.com/gmallard/stompngo_examples} +echo $SNGD +pushd $SNGD +# +export STOMP_NMSGS=1 +export STOMP_NQS=1 +# +STOMP_DEST=/queue/snge.ack go run publish/publish.go +STOMP_DEST=/queue/snge.ack.1 go run ack/ack.go +# +STOMP_USEEOF=y STOMP_DEST=/queue/snge.rdr go run publish/publish.go +STOMP_USEEOF=y STOMP_DEST=/queue/snge.rdr.1 go run adhoc/reader/reader.go +# +go run conndisc/conndisc.go +# +# Port 61611: AMQ, TLS, No cert required +STOMP_PORT=61611 go run conndisc_tls/conndisc_tls.go +# +go run srmgor_1conn/srmgor_1conn.go +go run srmgor_1smrconn/srmgor_1smrconn.go +go run srmgor_2conn/srmgor_2conn.go +go run srmgor_manyconn/srmgor_manyconn.go +# +STOMP_USEEOF=y STOMP_DEST=/queue/snge.sub go run publish/publish.go +STOMP_USEEOF=y STOMP_DEST=/queue/snge.sub.1 STOMP_NMSGS=2 go run subscribe/subscribe.go +# +popd -- 2.11.4.GIT