hybridgroup.gobot/adaptor.go

16 lines
345 B
Go
Raw Normal View History

2013-10-23 07:45:31 +08:00
package gobot
2013-10-24 13:00:03 +08:00
type Adaptor struct {
2014-01-27 10:55:27 +08:00
Name string `json:"name"`
Port string `json:"port"`
Connected bool `json:"Connected"`
Params map[string]interface{} `json:"params"`
2013-10-24 13:00:03 +08:00
}
type AdaptorInterface interface {
Finalize() bool
Connect() bool
Disconnect() bool
Reconnect() bool
2013-10-24 13:00:03 +08:00
}