Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keremdokumaci/randomsg
CLI tool for generating random messages with rules & publishing to the cloud services (SQS,SNS,PUB/SUB and etc.)
https://github.com/keremdokumaci/randomsg
message pubsub queue random sns sqs
Last synced: about 1 month ago
JSON representation
CLI tool for generating random messages with rules & publishing to the cloud services (SQS,SNS,PUB/SUB and etc.)
- Host: GitHub
- URL: https://github.com/keremdokumaci/randomsg
- Owner: keremdokumaci
- License: mit
- Created: 2022-03-26T15:53:15.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-31T07:59:51.000Z (about 1 year ago)
- Last Synced: 2024-06-20T14:22:56.211Z (7 months ago)
- Topics: message, pubsub, queue, random, sns, sqs
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```sh
go install "github.com/keremdokumaci/randomsg"@latest
```After installation of randomsg, ready to use. Just run :
```sh
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 !