zmq

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 4 Imported by: 1

README

zmq

ZeroMQ out of the box

Pull Repository, Install Dependencies and Test

git clone https://github.com/MonteCarloClub/zmq.git && cd zmq
apt install pkg-config libzmq3-dev
go test -run TestPubAndSub github.com/MonteCarloClub/zmq
go test -run TestPullAndPush github.com/MonteCarloClub/zmq

Import This Go Module

import "github.com/MonteCarloClub/zmq"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocketSet added in v0.2.0

type SocketSet struct {
	Zmq4PubSocket, Zmq4SubSocket   *zmq4.Socket
	Zmq4PullSocket, Zmq4PushSocket *zmq4.Socket
}

func CreateSocketSet added in v0.2.0

func CreateSocketSet() *SocketSet

func (*SocketSet) Close added in v0.2.1

func (socketSet *SocketSet) Close()

func (*SocketSet) Pub added in v0.2.0

func (socketSet *SocketSet) Pub(message string) error

func (*SocketSet) Pull added in v0.2.0

func (socketSet *SocketSet) Pull() (string, error)

func (*SocketSet) PullToChan added in v0.2.0

func (socketSet *SocketSet) PullToChan(messages chan string, errs chan error) error

func (*SocketSet) Push added in v0.2.0

func (socketSet *SocketSet) Push(message string) error

func (*SocketSet) SetPubSocket added in v0.2.0

func (socketSet *SocketSet) SetPubSocket(endpoint string) error

func (*SocketSet) SetPullSocket added in v0.2.0

func (socketSet *SocketSet) SetPullSocket(endpoint string) error

func (*SocketSet) SetPushSocket added in v0.2.0

func (socketSet *SocketSet) SetPushSocket(endpoint string) error

func (*SocketSet) SetSubSocket added in v0.2.0

func (socketSet *SocketSet) SetSubSocket(endpoint string, filter string) error

func (*SocketSet) Sub added in v0.2.0

func (socketSet *SocketSet) Sub() (string, error)

func (*SocketSet) SubToChan added in v0.2.0

func (socketSet *SocketSet) SubToChan(messages chan string, errs chan error) error

Jump to

Keyboard shortcuts

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