hybridgroup.gobot/adaptor.go

19 lines
432 B
Go
Raw Normal View History

2013-10-23 07:45:31 +08:00
package gobot
2013-10-24 13:00:03 +08:00
// 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
2014-11-22 11:35:01 +08:00
}
// Porter is the interface that describes an adaptor's port
2014-11-22 11:35:01 +08:00
type Porter interface {
Port() string
2014-06-14 01:46:58 +08:00
}