south

package
v0.0.0-...-fc28734 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodPropertyInvoke = "thing.property.invoke"
	MethodPropertyReport = "thing.property.post"
	MethodEventReport    = "thing.event.post"
	MethodPropertyGet    = "thing.property.get"
	MethodLifecyclePost  = "thing.lifecycle.post"
	DefaultVersion       = "1.0"
	KeyOnlineState       = "online_state"

	KeyDevice         = "device"
	KeyDeviceProduct  = "deviceProduct"
	KeyAccessTemplate = "accessTemplate"
	KeyNode           = "node"
	KeyNodeProduct    = "nodeProduct"
	NodeProduct       = "BIE-Product"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlinkContent

type BlinkContent struct {
	Blink BlinkData `yaml:"blink,omitempty" json:"blink,omitempty"`
}

type BlinkData

type BlinkData struct {
	ReqID      string         `yaml:"reqId,omitempty" json:"reqId,omitempty"`
	Method     string         `yaml:"method,omitempty" json:"method,omitempty"`
	Version    string         `yaml:"version,omitempty" json:"version,omitempty"`
	Timestamp  int64          `yaml:"timestamp,omitempty" json:"timestamp,omitempty"`
	Properties any            `yaml:"properties,omitempty" json:"properties,omitempty"`
	Events     map[string]any `yaml:"events,omitempty" json:"events,omitempty"`
	Params     map[string]any `yaml:"params,omitempty" json:"params,omitempty"`
}

func GenDeltaBlinkData

func GenDeltaBlinkData(properties map[string]interface{}) BlinkData

func GenEventReportBlinkData

func GenEventReportBlinkData(events map[string]any) BlinkData

func GenLifecycleReportBlinkData

func GenLifecycleReportBlinkData(online bool) BlinkData

func GenPropertyGetBlinkData

func GenPropertyGetBlinkData(properties []string) BlinkData

func GenPropertyReportBlinkData

func GenPropertyReportBlinkData(properties map[string]any) BlinkData

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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