1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-04 22:17:39 +08:00
hybridgroup.gobot/platforms/pebble/pebble_adaptor.go

26 lines
527 B
Go
Raw Permalink Normal View History

2014-05-02 17:22:05 -05:00
package pebble
type Adaptor struct {
name string
2014-05-02 17:22:05 -05:00
}
// NewAdaptor creates a new pebble adaptor
func NewAdaptor() *Adaptor {
return &Adaptor{
name: "Pebble",
}
2014-05-02 17:22:05 -05:00
}
func (a *Adaptor) Name() string { return a.name }
func (a *Adaptor) SetName(n string) { a.name = n }
2016-07-13 10:44:47 -06:00
// Connect returns true if connection to pebble is established successfully
func (a *Adaptor) Connect() error {
return nil
2014-05-02 17:22:05 -05:00
}
2016-07-13 10:44:47 -06:00
// Finalize returns true if connection to pebble is finalized successfully
func (a *Adaptor) Finalize() error {
return nil
2014-05-02 17:22:05 -05:00
}