base

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseExport

type BaseExport interface {
	HttpListen() string
	HandleFunc(method, pattern string, handler restful.Handler)
	HandlerFunc(method, path string, handler http.HandlerFunc)
}

type Export

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

设备自动发现插件

func Get

func Get() *Export

func (*Export) Destroy

func (export *Export) Destroy() error

func (*Export) ExportTo

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

点位变化触发场景联动

func (*Export) HandleFunc

func (export *Export) HandleFunc(method, pattern string, handler restful.Handler)

func (*Export) HandlerFunc

func (export *Export) HandlerFunc(method, path string, handler http.HandlerFunc)

func (*Export) HttpListen

func (export *Export) HttpListen() string

func (*Export) Init

func (export *Export) Init() error

func (*Export) IsReady

func (export *Export) IsReady() bool

func (*Export) OnEvent

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

继承Export OnEvent接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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