[zeromq-dev] [ANN] Providing a golang channel wrapper for pebbe/zmq4 golang zmq binding

Alex Bligh alex at alex.org.uk
Tue Mar 1 21:02:59 CET 2016


I have developed an experimental wrapper for the excellent ZMQ4 golang binding at
  https://github.com/pebbe/zmq4

The wrapper allows for zmq.Socket to be wrapped so they can be accessed
through golang channels in a threadsafe and idiomatic manner. This allows
(inter-alia) golang select statements which mix ZMQ and non-ZMQ items,
for instance channels to represent cancellation.

You can find the code here:

  https://github.com/abligh/zmqchan

and documentation here:

  https://godoc.org/github.com/abligh/zmqchan

This could be an addition to the zmq4 golang binding, see:
  https://github.com/pebbe/zmq4/pull/81
but the current view of the maintainer is that this is not desirable,
(as per that pull request) therefore I am providing it as a separate library.

-- 
Alex Bligh







More information about the zeromq-dev mailing list