Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "mqtt" // EntityMqtt ... EntityMqtt = string("mqtt") )
View Source
const ( // FuncMqttEvent ... FuncMqttEvent = "mqttEvent" // FuncEntityAction ... FuncEntityAction = "entityAction" Version = "0.1.0" )
View Source
const (
// AttrSubscribeTopic ...
AttrSubscribeTopic = "subscribe_topic"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct { supervisor.BaseActor // contains filtered or unexported fields }
Actor ...
func NewActor ¶
func NewActor(entity *m.Entity, service supervisor.Service, mqttClient mqtt.MqttCli) (actor *Actor, err error)
NewActor ...
func (*Actor) SetState ¶
func (e *Actor) SetState(params supervisor.EntityStateParams) error
SetState ...
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 supervisor.EntityStateParams `json:"new_state"` // contains filtered or unexported fields }
Message ...
Click to show internal directories.
Click to hide internal directories.