nsq-tail

command module
v0.0.0-...-2cf4789 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 10 Imported by: 0

README

nsq-tail

How to get message from NSQ ? You can use this service now.

Why I create this ?

When I learn nsq for the first time, I found problem how to get the message. My friend just tell me to get nsq tail. I don't know how to run nsq tail for the first time. Based on my problem, hopefully this service can help you to get the nsq message. Please just tell your friend, "Hei you, just clone https://github.com/tjandrayana/nsq-tail repository and then run the service."

How To Use ???

1. Clone this repository
2. Run the service 
3. Do request use postman / curl

Example

- Request

Method : POST
URL : http://localhost:8005/get-nsq-messages
Body : 
{
	"lookup_url" : "10.2.0.3",
	"lookup_port":"4161",
	"topic":"User_Info",
	"total_messages":1
}
-----------------------------------------------------

- Response

{
	"user_id":12345,
	"age":20,
	"email":"\"try@gmail.com\""
}

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