test-emitter

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 12 Imported by: 0

README

Test Emitter

This is a simple tool designed to emit events. It currently supports stdout and AWS SQS as output destinations.

Requires

  • Go 1.20 or higher
  • AWS CLI (if using AWS SQS)

Installation

go install github.com/devinmarder/test-emitter@latest

Usage

Emitting to stdout

To emit events to stdout, use the -out flag set to stdout:

test-emitter -out stdout
Emitting to AWS SQS

To emit events to AWS SQS, you need to set the -out flag to sqs and provide a queue name with the -queue flag:

test-emitter -out sqs -queue your_queue_name

Please ensure that you have configured your AWS CLI with the appropriate credentials and region.

Options

The message to be sent can be specified with the -msg parameter or a file location can be specified with -file. The Message supports go templates where ID and Timestamp can be used to embed an incremental id and the current time in the message.

The number of messages sent can be specified with -count and the logging level can be specified using -log-level.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

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