hybridgroup.gobot/platforms/pebble/pebble_adaptor.go

32 lines
648 B
Go
Raw Normal View History

2014-05-03 06:22:05 +08:00
package pebble
import (
"github.com/hybridgroup/gobot"
)
var _ gobot.AdaptorInterface = (*PebbleAdaptor)(nil)
2014-05-03 06:22:05 +08:00
type PebbleAdaptor struct {
gobot.Adaptor
}
// NewPebbleAdaptor creates a new pebble adaptor with specified name
func NewPebbleAdaptor(name string) *PebbleAdaptor {
return &PebbleAdaptor{
2014-07-08 08:35:59 +08:00
Adaptor: *gobot.NewAdaptor(
name,
"PebbleAdaptor",
),
}
2014-05-03 06:22:05 +08:00
}
// Connect returns true if connection to pebble is established succesfully
func (a *PebbleAdaptor) Connect() (errs []error) {
return
2014-05-03 06:22:05 +08:00
}
// Finalize returns true if connection to pebble is finalized succesfully
func (a *PebbleAdaptor) Finalize() (errs []error) {
return
2014-05-03 06:22:05 +08:00
}