Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemManager ¶
func NewMemManager() *memManager
NewMemManager returns an new instance of the memManager, which is implements the Manager interface. memManager is a hidden struct that stores the topic subscriptions and retained messages in memory. The content is not persistend so when the server goes, everything will be gone. Use with care.
Types ¶
type Manager ¶
type Manager interface { Subscribe(sub Subscription) (byte, error) Unsubscribe(sub Subscription) error Subscribers(topic []byte, qos byte, subs *[]interface{}, qoss *[]byte) error Retain(msg *packets.PublishPacket) error Retained(topic []byte, msgs *[]*packets.PublishPacket) error Close() error }
Manager
type Subscription ¶
func NewSubscription ¶
Click to show internal directories.
Click to hide internal directories.