event

package
v0.0.0-...-ae4999c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 HttpPost

func HttpPost(url string, data interface{})

func Init

func Init(ctx context.Context)

func OnDevicePerfChanged

func OnDevicePerfChanged(conf *json_rpc.Conf, perf map[string]interface{})

func OnDeviceStatusChanged

func OnDeviceStatusChanged(conf *json_rpc.Conf, status lang.StrIndex)

func OnMeasureAlarm

func OnMeasureAlarm(conf *json_rpc.Conf, measureData *measure.Data)

func OnMeasureDiscovered

func OnMeasureDiscovered(conf *json_rpc.Conf, tagName, title string)

func Publish

func Publish(topic string, args ...interface{})

Types

type HttpRequest

type HttpRequest struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL