1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
hybridgroup.gobot/driver.go
deadprogram 08874e4e21 core: no longer return slices of errors, instead use multierror
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:51 +01:00

21 lines
498 B
Go

package gobot
// Driver is the interface that describes a driver in gobot
type Driver interface {
// Name returns the label for the Driver
Name() string
// SetName sets the label for the Driver
SetName(s string)
// Start initiates the Driver
Start() error
// Halt terminates the Driver
Halt() error
// Connection returns the Connection assiciated with the Driver
Connection() Connection
}
// Pinner is the interface that describes a driver's pin
type Pinner interface {
Pin() string
}