hybridgroup.gobot/driver.go

16 lines
378 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 Driver struct {
2014-01-27 10:55:27 +08:00
Interval string `json:"interval"`
Pin string `json:"pin"`
Name string `json:"name"`
Commands []string `json:"commands"`
2013-11-24 02:36:08 +08:00
Events map[string]chan interface{} `json:"-"`
2013-10-24 13:00:03 +08:00
}
type DriverInterface interface {
2014-04-01 06:26:35 +08:00
Init() bool
Start() bool
2014-04-01 05:25:20 +08:00
Halt() bool
2013-10-24 13:00:03 +08:00
}