plugins

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlugin

func AddPlugin(adaptors *adaptors.Adaptors, name string, opts ...m.Attributes) (err error)

func GetNewBitmineL3

func GetNewBitmineL3(name string) *m.Entity

func GetNewButton

func GetNewButton(id string, scripts []m.Script) *m.Entity

func GetNewModbusRtu

func GetNewModbusRtu(name string) *m.Entity

func GetNewModbusTcp

func GetNewModbusTcp(name string) *m.Entity

func GetNewMoon

func GetNewMoon(name string) *m.Entity

func GetNewNode

func GetNewNode(name string) *m.Entity

func GetNewPlug

func GetNewPlug(id string, scrits []m.Script) *m.Entity

func GetNewScene

func GetNewScene(id string, scripts []m.Script) *m.Entity

func GetNewScript

func GetNewScript(id string, scrits []m.Script) *m.Entity

func GetNewSensor

func GetNewSensor(name string) *m.Entity

func GetNewSun

func GetNewSun(name string) *m.Entity

func GetNewTelegram

func GetNewTelegram(name string) *m.Entity

func GetNewWeather

func GetNewWeather(name string) *m.Entity

func GetNewWeatherOwm

func GetNewWeatherOwm(name string) *m.Entity

func GetNewZone

func GetNewZone() *m.Entity

func GetPort

func GetPort() int64

func MockHttpServer

func MockHttpServer(ctx context.Context, ip string, port int64, payload []byte) (err error)

func MockTCPServer

func MockTCPServer(ctx context.Context, ip string, port int64, payloads ...[]byte) (err error)

func RegisterConvey

func RegisterConvey(scriptService scripts.ScriptService, ctx convey.C)

func Wait

func Wait(t time.Duration, ch chan interface{}) (ok bool)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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