Skip to content

CLI tool for generating random messages with rules & publishing to the cloud services (SQS,SNS,PUB/SUB and etc.)

License

Notifications You must be signed in to change notification settings

keremdokumaci/randomsg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Randomsg

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

TODO

Generation of nested objects is not supported yet. However, it is gonna be added as soon as possible !

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 equal to 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
  • all numeric fields (int,float ..)
  • time
  • bool

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 !

About

CLI tool for generating random messages with rules & publishing to the cloud services (SQS,SNS,PUB/SUB and etc.)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages