Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "node" EntityNode = common.EntityType("node") TopicPluginNode = "plugin.node" )
View Source
const ( AttrThread = "thread" AttrRps = "rps" AttrMin = "min" AttrMax = "max" AttrStartedAt = "started_at" AttrNodeLogin = "node_login" AttrNodePass = "node_pass" )
Variables ¶
This section is empty.
Functions ¶
func NewAttr ¶
func NewAttr() m.Attributes
func NewSettings ¶
func NewSettings() m.Attributes
func NewStates ¶
func NewStates() (states map[string]entity_manager.ActorState)
Types ¶
type Actor ¶
type Actor struct { entity_manager.BaseActor // contains filtered or unexported fields }
func NewActor ¶
func NewActor(entity *m.Entity, entityManager entity_manager.EntityManager, adaptors *adaptors.Adaptors, scriptService scripts.ScriptService, eventBus event_bus.EventBus, mqttClient mqtt.MqttCli) (actor *Actor)
func (*Actor) Spawn ¶
func (e *Actor) Spawn() entity_manager.PluginActor
type MessageRequest ¶
type MessageRequest struct { EntityId common.EntityId `json:"entity_id"` DeviceType DeviceType `json:"device_type"` Properties json.RawMessage `json:"properties"` Command json.RawMessage `json:"command"` }
MessageRequest ...
type MessageResponse ¶
type MessageResponse struct { EntityId common.EntityId `json:"entity_id"` DeviceType DeviceType `json:"device_type"` Properties json.RawMessage `json:"properties"` Response json.RawMessage `json:"response"` Status string `json:"status"` }
MessageResponse ...
type MessageStatus ¶
Click to show internal directories.
Click to hide internal directories.