19 lines
436 B
Go
19 lines
436 B
Go
package gobot
|
|
|
|
// Adaptor is the interface that describes an adaptor in gobot
|
|
type Adaptor interface {
|
|
// Name returns the label for the Adaptor
|
|
Name() string
|
|
// SetName sets the label for the Adaptor
|
|
SetName(n 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
|
|
}
|