Repository: qpid-proton Updated Branches: refs/heads/master 433e9a039 -> 0a2c15c75
NO-JIRA: Clarify URL and address parameters in Go examples. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/0a2c15c7 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/0a2c15c7 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/0a2c15c7 Branch: refs/heads/master Commit: 0a2c15c75ca25e543a5dbaf0337358ff4e288c55 Parents: 433e9a0 Author: Alan Conway <acon...@redhat.com> Authored: Wed Oct 4 09:32:22 2017 -0400 Committer: Alan Conway <acon...@redhat.com> Committed: Wed Oct 4 09:43:14 2017 -0400 ---------------------------------------------------------------------- examples/go/electron/broker.go | 5 +++-- examples/go/electron/receive.go | 5 +++-- examples/go/electron/send.go | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/0a2c15c7/examples/go/electron/broker.go ---------------------------------------------------------------------- diff --git a/examples/go/electron/broker.go b/examples/go/electron/broker.go index ba06e89..64d7120 100644 --- a/examples/go/electron/broker.go +++ b/examples/go/electron/broker.go @@ -41,12 +41,13 @@ import ( func usage() { fmt.Fprintf(os.Stderr, ` Usage: %s -A simple broker-like demo. Queues are created automatically for sender or receiver addrsses. +A simple message broker. +Queues are created automatically for sender or receiver addresses. `, os.Args[0]) flag.PrintDefaults() } -var addr = flag.String("addr", ":amqp", "Listening address") +var addr = flag.String("addr", ":amqp", "Network address to listen on, in the form \"host:port\"") var credit = flag.Int("credit", 100, "Receiver credit window") var qsize = flag.Int("qsize", 1000, "Max queue size") var debug = flag.Bool("debug", false, "Print detailed debug output") http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/0a2c15c7/examples/go/electron/receive.go ---------------------------------------------------------------------- diff --git a/examples/go/electron/receive.go b/examples/go/electron/receive.go index 57ca53e..93046b3 100644 --- a/examples/go/electron/receive.go +++ b/examples/go/electron/receive.go @@ -33,12 +33,13 @@ import ( // Usage and command-line flags func usage() { fmt.Fprintf(os.Stderr, `Usage: %s url [url ...] -Receive messages from all the listed URLs concurrently and print them. +Receive messages from all URLs concurrently and print them. +URLs are of the form "amqp://<host>:<port>/<amqp-address>" `, os.Args[0]) flag.PrintDefaults() } -var count = flag.Uint64("count", 1, "Stop after receiving this many messages.") +var count = flag.Uint64("count", 1, "Stop after receiving this many messages in total") var debug = flag.Bool("debug", false, "Print detailed debug output") var debugf = func(format string, data ...interface{}) {} // Default no debugging output http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/0a2c15c7/examples/go/electron/send.go ---------------------------------------------------------------------- diff --git a/examples/go/electron/send.go b/examples/go/electron/send.go index 2ba99c8..74f751c 100644 --- a/examples/go/electron/send.go +++ b/examples/go/electron/send.go @@ -33,12 +33,13 @@ import ( // Usage and command-line flags func usage() { fmt.Fprintf(os.Stderr, `Usage: %s url [url ...] -Send messages to each URL concurrently with body "<url-path>-<n>" where n is the message number. +Send messages to each URL concurrently. +URLs are of the form "amqp://<host>:<port>/<amqp-address>" `, os.Args[0]) flag.PrintDefaults() } -var count = flag.Int64("count", 1, "Send this may messages per address.") +var count = flag.Int64("count", 1, "Send this may messages to each address.") var debug = flag.Bool("debug", false, "Print detailed debug output") var Debugf = func(format string, data ...interface{}) {} // Default no debugging output --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org