plugins

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 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)

AddPlugin ...

func AddScript added in v0.5.2

func AddScript(name, src string, adaptors *adaptors.Adaptors, scriptService scripts.ScriptService) (script *m.Script, err error)

AddScript ...

func GetNewBitmineL3

func GetNewBitmineL3(name string) *m.Entity

GetNewBitmineL3 ...

func GetNewButton

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

GetNewButton ...

func GetNewModbusRtu

func GetNewModbusRtu(name string) *m.Entity

GetNewModbusRtu ...

func GetNewModbusTcp

func GetNewModbusTcp(name string) *m.Entity

GetNewModbusTcp ...

func GetNewMoon

func GetNewMoon(name string) *m.Entity

GetNewMoon ...

func GetNewNode

func GetNewNode(name string) *m.Entity

GetNewNode ...

func GetNewPlug

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

GetNewPlug ...

func GetNewScene

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

GetNewScene ...

func GetNewScript

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

GetNewScript ...

func GetNewSensor

func GetNewSensor(name string) *m.Entity

GetNewSensor ...

func GetNewSun

func GetNewSun(name string) *m.Entity

GetNewSun ...

func GetNewTelegram

func GetNewTelegram(name string) *m.Entity

GetNewTelegram ...

func GetNewWeather

func GetNewWeather(name string) *m.Entity

GetNewWeather ...

func GetNewWeatherOwm

func GetNewWeatherOwm(name string) *m.Entity

GetNewWeatherOwm ...

func GetNewZone

func GetNewZone() *m.Entity

GetNewZone ...

func GetPort

func GetPort() int64

GetPort ...

func MockHttpServer

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

MockHttpServer ...

func MockTCPServer

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

MockTCPServer ...

func RegisterConvey

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

RegisterConvey ...

func Wait

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

Wait ...

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