Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttConf ¶
type MqttConf struct { TCP string `yaml:"tcp"` CaFile string `yaml:"ca"` ClientCrt string `yaml:"crt"` ClientKey string `yaml:"key"` UserName string `yaml:"user"` Password string `yaml:"password"` FileStorePath string `yaml:"fileStorePath"` }
func (*MqttConf) NewMqttServ ¶
type MqttServ ¶
type MqttServ interface { PublishByte(topics []string, data []byte, retain bool) error Publish(topics []string, message map[string]interface{}, retain bool) error Subcribe(mssm MqttSubSerInter) error SubscribeMultiple(mssm MqttSubSerMap) error Disconnect() // contains filtered or unexported methods }
type MqttSubSerInter ¶
type MqttSubSerMap ¶
type MqttSubSerMap struct {
// contains filtered or unexported fields
}
func (*MqttSubSerMap) Add ¶
func (mssl *MqttSubSerMap) Add(mss MqttSubSerInter)
func (MqttSubSerMap) GetSubscribeMap ¶
func (mssl MqttSubSerMap) GetSubscribeMap() map[string]byte
Click to show internal directories.
Click to hide internal directories.