Documentation ¶
Overview ¶
Package sub implements the SUB protocol. This protocol receives messages from publishers (PUB peers). The messages are filtered based on subscription, such that only subscribed messages (see OptionSubscribe) are received.
Note that in order to receive any messages, at least one subscription must be present. If no subscription is present (the default state), receive operations will block forever.
Index ¶
Constants ¶
View Source
const ( Self = protocol.ProtoSub Peer = protocol.ProtoPub SelfName = "sub" PeerName = "pub" )
Protocol identity information.
Variables ¶
This section is empty.
Functions ¶
func NewProtocol ¶
NewProtocol returns a new protocol implementation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.