linkedge

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExecuteResultAllSuccess 全部成功
	ExecuteResultAllSuccess = "success"
	// ExecuteResultPartSuccess 部分成功
	ExecuteResultPartSuccess = "partSuccess"
	// ExecuteResultAllFail 全部失败
	ExecuteResultAllFail = "fail"
)
View Source
const (
	LinkConfigPath = "./config/linkedge" // 场景联动配置路径
)

Variables

View Source
var ErrActionListIsEmpty = errors.New("linkEdge action list cannot be empty")

ErrActionListIsEmpty action 列表为空错误

Functions

This section is empty.

Types

type EnvConfig

type EnvConfig struct {
	ConfigPath string
}

type Export

type Export struct {
	EnvConfig EnvConfig
	// contains filtered or unexported fields
}

func NewExport

func NewExport() *Export

func (*Export) ExportTo

func (export *Export) ExportTo(deviceData plugin.DeviceData)

点位变化触发场景联动

func (*Export) Init

func (export *Export) Init() error

func (*Export) IsReady

func (export *Export) IsReady() bool

func (*Export) OnEvent

func (export *Export) OnEvent(eventCode string, key string, eventValue interface{}) error

继承Export OnEvent接口

Jump to

Keyboard shortcuts

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