Documentation ¶
Overview ¶
Package pubsub contains types to deal with subscriptions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub deals with subscribing and publishing messages.
func New ¶
New creates a new PubSub. It will keep a history for each message type with at least the given cap.
func (*PubSub) LastMessageID ¶ added in v0.2.2
LastMessageID returns the ID of the last message.
Click to show internal directories.
Click to hide internal directories.