publish

command
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Publish messages to a STOMP broker.

Examples:

	# Publish to a broker with all defaults:
	# Host is "localhost"
	# Port is 61613
	# Login is "guest"
	# Passcode is "guest
	# Virtual Host is "localhost"
	# Protocol is 1.1
	go run publish.go

	# Publish to a broker using STOMP protocol level 1.0:
	STOMP_PROTOCOL=1.0 go run publish.go

	# Publish to a broker using a custom host and port:
	STOMP_HOST=tjjackson STOMP_PORT=62613 go run publish.go

	# Publish to a broker using a custom port and virtual host:
	STOMP_PORT=41613 STOMP_VHOST="/" go run publish.go

	# Publish to a broker using a custom login and passcode:
	STOMP_LOGIN="userid" STOMP_PASSCODE="t0ps3cr3t" go run publish.go

	# Important environment variables for this program are:

	# STOMP_NGORS - the number of go routines used to write to the
	# sepcified queues.

	# STOMP_NMSGS - the number of messages each go routine will write.

	# STOMP_NQS - The number of queues to write messages to.  If this
	# variable is absent, the value defaults to the value specified
	# for STOMP_NGORS.  If this value is specified, all go routines
	# are multi-plexed across this number of queues.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL