Documentation ¶
Index ¶
- func AddPlugin(adaptors *adaptors.Adaptors, name string, opts ...m.Attributes) (err error)
- func AddScript(name, src string, adaptors *adaptors.Adaptors, ...) (script *m.Script, err error)
- func GetNewBitmineL3(name string) *m.Entity
- func GetNewButton(id string, scripts []*m.Script) *m.Entity
- func GetNewModbusRtu(name string) *m.Entity
- func GetNewModbusTcp(name string) *m.Entity
- func GetNewMoon(name string) *m.Entity
- func GetNewNode(name string) *m.Entity
- func GetNewPlug(id string, scrits []*m.Script) *m.Entity
- func GetNewScene(id string, scripts []*m.Script) *m.Entity
- func GetNewScript(id string, scrits []*m.Script) *m.Entity
- func GetNewSensor(name string) *m.Entity
- func GetNewSun(name string) *m.Entity
- func GetNewTelegram(name string) *m.Entity
- func GetNewWeatherMet(name string) *m.Entity
- func GetNewZone() *m.Entity
- func GetPort() int64
- func MockHttpServer(ctx context.Context, ip string, port int64, payload []byte) (err error)
- func MockTCPServer(ctx context.Context, ip string, port int64, payloads ...[]byte) (err error)
- func RegisterConvey(scriptService scripts.ScriptService, ctx convey.C)
- func Wait(t time.Duration, ch chan interface{}) (ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 GetNewWeatherMet ¶ added in v0.9.0
GetNewWeatherMet ...
func MockHttpServer ¶
MockHttpServer ...
func MockTCPServer ¶
MockTCPServer ...
func RegisterConvey ¶
func RegisterConvey(scriptService scripts.ScriptService, ctx convey.C)
RegisterConvey ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.