Documentation ¶
Index ¶
- Constants
- Variables
- func HttpPost(url string, data interface{})
- func Init(ctx context.Context)
- func OnDevicePerfChanged(conf *json_rpc.Conf, perf map[string]interface{})
- func OnDeviceStatusChanged(conf *json_rpc.Conf, status lang.StrIndex)
- func OnMeasureAlarm(conf *json_rpc.Conf, measureData *measure.Data)
- func OnMeasureDiscovered(conf *json_rpc.Conf, tagName, title string)
- func Publish(topic string, args ...interface{})
- type HttpRequest
Constants ¶
View Source
const ( DeviceStatusChanged = "device:status::changed" DevicePerfChanged = "device:perf::changed" MeasureDiscovered = "measure::discovered" MeasureAlarm = "measure::alarm" )
Variables ¶
View Source
var (
Event = EventBus.New()
)
Functions ¶
func OnDevicePerfChanged ¶
func OnMeasureDiscovered ¶
Types ¶
type HttpRequest ¶
type HttpRequest struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.