hybridgroup.gobot/adaptor.go

17 lines
374 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
// 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
}