Documentation
¶
Index ¶
Constants ¶
View Source
const MaximumClientID = 1024
MaximumClientID represents maximum client identification of MQTT
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { IsRun bool // contains filtered or unexported fields }
func New ¶
New creates a new MQTT service instance. MQTT service receives messages from protocols and publish them on its channel
func (*Service) Channel ¶
Channel returns a channel for consuming the received data Consuming this channel makes MQTT service work
func (*Service) Exit ¶
func (s *Service) Exit()
Exit closes MQTT connection then closes all channels and return from all pipeline stages
Click to show internal directories.
Click to hide internal directories.