muun-recovery/vendor/github.com/lightninglabs/gozmq
Manu Herrera d301c63596 Release v0.1.0 2019-10-01 12:22:30 -03:00
..
LICENSE Release v0.1.0 2019-10-01 12:22:30 -03:00
README.md Release v0.1.0 2019-10-01 12:22:30 -03:00
go.mod Release v0.1.0 2019-10-01 12:22:30 -03:00
zmq.go Release v0.1.0 2019-10-01 12:22:30 -03:00

README.md

gozmq

GoZMQ is a pure Go ZMQ pubsub client implementation.

Only a very limited subset of ZMQ is implemented: NULL security, SUB socket.

Usage

Please visit https://godoc.org/github.com/tstranex/gozmq for the full documentation.

Installation

To install, run:

go get github.com/tstranex/gozmq

Example

See example/main.go for a full example.

c, err := gozmq.Subscribe("127.0.0.1:1234", []string{""})
for {
  msg, err := c.Receive()
  // Process message
}