Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker is a simple mqtt publisher abstraction.
func NewBroker ¶
func NewBroker(bindAddress string, wsPort int, wsPath string, workerCount int, onSubscribe OnSubscribeHandler, onUnsubscribe OnUnsubscribeHandler) (*Broker, error)
NewBroker creates a new broker.
func (*Broker) HasSubscribers ¶
type OnSubscribeHandler ¶
type OnSubscribeHandler func(topic []byte)
type OnUnsubscribeHandler ¶
type OnUnsubscribeHandler func(topic []byte)
Click to show internal directories.
Click to hide internal directories.