randomsg

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 1 Imported by: 0

README

Randomsg

A CLI tool to generate random messages and publish to cloud services like (SQS,SNS,PUB/SUB and etc.)

Randomsg is a basic CLI tool. Simply, adding message format, rules and required credentials for the service (like SNS) are enough to use it.

Installation

randomsg requires go with version 1.18+.

Install go and run:

go install "github.com/keremdokumaci/randomsg"@latest

After installation of randomsg, ready to use. Just run :

randomsg **args**

Args

This table will be uptaded for new features.

Parameter Need to know Description
--service sqs and sns are supported now. service which the message will be sent.
--file .json files are supported now. file which has message format and service credentials.
--count should be greater than 0. count of messages to publish
--delay should be greater than or equaş 0. delay before each message publish.

Sample Message File

You can find the sample in master branch as sample.json. All of the supported rules and types will be in that json.

Types
  • string
  • int
  • time
  • float
  • char
Rules
  • min & max for numeric types
  • startsWith & endsWith for string type.
  • format for string type.
    • available values for format : uuid

Contribution

Feel free to contribute !

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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