hybridgroup.gobot/platforms/pebble/pebble_adaptor.go

31 lines
644 B
Go
Raw Normal View History

2014-05-03 06:22:05 +08:00
package pebble
import (
"github.com/hybridgroup/gobot"
)
var _ gobot.Adaptor = (*PebbleAdaptor)(nil)
2014-05-03 06:22:05 +08:00
type PebbleAdaptor struct {
name string
2014-05-03 06:22:05 +08:00
}
// NewPebbleAdaptor creates a new pebble adaptor with specified name
func NewPebbleAdaptor(name string) *PebbleAdaptor {
return &PebbleAdaptor{
name: name,
}
2014-05-03 06:22:05 +08:00
}
func (a *PebbleAdaptor) Name() string { return a.name }
// 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
}