package
0.0.0-20200720041452-e2ed9984c3aa
Repository: https://github.com/albertwidi/gonsq.git
Documentation: pkg.go.dev
# README
Fake NSQ
Fake NSQ Consumer and Producer for backend/internal/pkg/nsq
Built to test the correctness of the nsqio wrapper
Limitations:
- Consumer must registered first before publishing message.
- Do not expecting message to be stored, all message directly consumed.
- Message published before any active consumer will be lost.
- Message requeue not working
- Message is always finished
# Functions
New instance of fakensq.
# Structs
Consumer is the consumer of NSQ, the consumer relay message to message handler.
ConsumerConfig of fake nsq.
FakeNSQ mimic several NSQ features, mostly for publishing and consuming message.
LookUpD for fakensq.
MessageDelegator implement Delegator of nsqio.
Producer for fakensq.