Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeGateway = "gateway" TypeNode = "node" TypeTask = "task" TypeHandler = "handler" TypeScheduler = "scheduler" TypeFirmware = "firmware" TypeResourceAction = "resource_action" TypeSystemJobs = "system_jobs" TypeVirtualAssistant = "virtual_assistant" )
Resource type details
View Source
const ( CommandUpdate = "update" CommandUpdateState = "updateState" CommandGet = "get" CommandList = "list" CommandGetIds = "getIds" CommandSet = "set" CommandAdd = "add" CommandRemove = "remove" CommandEnable = "enable" CommandDisable = "disable" CommandStart = "start" CommandStop = "stop" CommandReload = "reload" CommandLoadAll = "loadAll" CommandUnloadAll = "unloadAll" CommandBlocks = "blocks" CommandFirmwareState = "firmwareState" CommandSetLabel = "setLabel" CommandGetSleepingQueue = "getSleepingQueue" CommandClearSleepingQueue = "clearSleepingQueue" )
Command details
View Source
const ( SubCommandJobNodeStatusUpdater = "job_node_status_updater" SubCommandJobSunriseTimeUpdater = "job_sunrise_time_updater" )
sub commands, will be used in the data field
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceEvent ¶
type ServiceEvent struct { Type string `json:"type" yaml:"type"` Command string `json:"command" yaml:"command"` ReplyCommand string `json:"replyCommand" yaml:"replyCommand"` ReplyTopic string `json:"replyTopic" yaml:"replyTopic"` ID string `json:"id" yaml:"id"` Labels cmap.CustomStringMap `json:"labels" yaml:"labels"` Data string `json:"data" yaml:"data"` Error string `json:"error" yaml:"error"` }
ServiceEvent details
func (*ServiceEvent) LoadData ¶
func (e *ServiceEvent) LoadData(out interface{}) error
LoadData loads the data to given interface
func (*ServiceEvent) SetData ¶
func (e *ServiceEvent) SetData(data interface{})
Click to show internal directories.
Click to hide internal directories.