gobot.io/x/gobot@v1.16.0/adaptor.go (about) 1 package gobot 2 3 // Adaptor is the interface that describes an adaptor in gobot 4 type Adaptor interface { 5 // Name returns the label for the Adaptor 6 Name() string 7 // SetName sets the label for the Adaptor 8 SetName(n string) 9 // Connect initiates the Adaptor 10 Connect() error 11 // Finalize terminates the Adaptor 12 Finalize() error 13 } 14 15 // Porter is the interface that describes an adaptor's port 16 type Porter interface { 17 Port() string 18 }