Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "mqtt" // EntityMqtt ... EntityMqtt = string("mqtt") )
View Source
const ( // FuncMqttEvent ... FuncMqttEvent = "mqttEvent" // FuncEntityAction ... FuncEntityAction = "entityAction" )
View Source
const (
// AttrSubscribeTopic ...
AttrSubscribeTopic = "subscribe_topic"
)
Variables ¶
View Source
var F embed.FS
Functions ¶
Types ¶
type Actor ¶
type Actor struct { *supervisor.BaseActor // contains filtered or unexported fields }
Actor ...
func NewActor ¶
func NewActor(entity *m.Entity, service plugins.Service, mqttClient mqtt.MqttCli) (actor *Actor, err error)
NewActor ...
type Message ¶
type Message struct { Payload string `json:"payload"` Topic string `json:"topic"` Qos uint8 `json:"qos"` Duplicate bool `json:"duplicate"` Error string `json:"error"` Success bool `json:"success"` NewState plugins.EntityStateParams `json:"new_state"` // contains filtered or unexported fields }
Message ...
Click to show internal directories.
Click to hide internal directories.