nanomsg

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPub

func NewPub(url string) mangos.Socket

NewPub creates a new publisher socket

func NewSub

func NewSub(url string, topic []byte) (mangos.Socket, error)

NewSub creates a new subscriber socket

Types

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

Proxy is a proxy which can subscribe to multiple sockets and publish to a single socket

func NewProxy

func NewProxy(url string) *Proxy

NewProxy creates a new instance

func (*Proxy) Close

func (p *Proxy) Close()

Close stops and removes all subscribers

func (*Proxy) SubscribeTo

func (p *Proxy) SubscribeTo(url string, wg *sync.WaitGroup)

SubscribeTo a publisher

Jump to

Keyboard shortcuts

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