nsq-tool-kit

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0

README

nsq-took-kit

This is a nsq tool kit project, can consume nsq messages and post to others.

Run Locally

Clone the project

  git clone git@github.com:JieTrancender/nsq-tool-kit.git

Go to the project directory

  cd nsq-tool-kit

Install dependencies

  1. etcd
  2. nsq
  3. elasticsearch
  4. go dependencies
  make tidy

Configure Etcd

  {
    "lookupd-http-addresses":[
        "http://127.0.0.1:4161"
    ],
    "topics":[
        "dev_test"
    ],
    "channel": "nsq_tool_kit",
    "dial-timeout": 6,
    "read-timeout": 60,
    "write-timeout": 6,
    "max-in-flight": 200
}

Start the server

  make && ./build/platforms/PLATFORM/ARCH/nsq-consumer -c conf/nsq-consumer.yaml

Jump to

Keyboard shortcuts

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