testhub

command module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Hub Testing CLI

testhub is a command line tool to help test Event Hub sending and receiving.

Usage

When simply executing testhub, you will be greeted with a help page. help can be called on each command.

$ testhub
hubtest is a simple command line testing tool for the Event Hub library

Usage:
  hubtest [command]

Available Commands:
  delete      Delete an Event Hub
  help        Help about any command
  receive     Receive messages from an Event Hub
  send        Send messages to an Event Hub
  version     Print the git ref

Flags:
      --conn-str string    Connection string for Event Hub
      --debug              debug level logging
  -h, --help               help for hubtest
      --hub string         name of the Event Hub
      --key string         SAS key for the key-name
      --key-name string    SAS key name for the Event Hub
      --namespace string   namespace of the Event Hub

Use "hubtest [command] --help" for more information about a command.
Send

Send will by default send 1 messages of 256 bytes.

$ testhub send --namespace yourNamespace --hub yourHub --key-name yourKeyName --key yourKey

Send with a connection string.

$ testhub send --conn-str yourConnectionString

You can specify more messages by using --msg-count and --msg-size.

$ testhub send --conn-str yourConnectionString --msg-count 100 --msg-size 100
Receive

Listen for messages on all partitions of a given Event Hub.

$ testhub receive --namespace yourNamespace --hub yourHub --key-name yourKeyName --key yourKey

Use a connection string instead.

$ testhub receive --conn-str yourConnectionString
Debug

If you would like to see more in-depth information about what is happening, run the commands with --debug.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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