forked from hybridgroup/gobot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go lint and documentation tweaks for the gobot package
- Loading branch information
Showing
11 changed files
with
102 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
package gobot | ||
|
||
// Adaptor is the interface that describes an adaptor in gobot | ||
type Adaptor interface { | ||
Finalize() []error | ||
Connect() []error | ||
// Name returns the label for the Adaptor | ||
Name() string | ||
// Connect initiates the Adaptor | ||
Connect() []error | ||
// Finalize terminates the Adaptor | ||
Finalize() []error | ||
} | ||
|
||
// Porter is the interface that describes an adaptor's port | ||
type Porter interface { | ||
Port() string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
package gobot | ||
|
||
// Driver is the interface that describes a driver in gobot | ||
type Driver interface { | ||
// Name returns the label for the Driver | ||
Name() string | ||
// Start initiates the Driver | ||
Start() []error | ||
// Halt terminates the Driver | ||
Halt() []error | ||
Name() string | ||
// 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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.