gobot.io/x/gobot/v2@v2.1.0/driver.go (about) 1 package gobot 2 3 // Driver is the interface that describes a driver in gobot 4 type Driver interface { 5 // Name returns the label for the Driver 6 Name() string 7 // SetName sets the label for the Driver 8 SetName(s string) 9 // Start initiates the Driver 10 Start() error 11 // Halt terminates the Driver 12 Halt() error 13 // Connection returns the Connection associated with the Driver 14 Connection() Connection 15 } 16 17 // Pinner is the interface that describes a driver's pin 18 type Pinner interface { 19 Pin() string 20 }