hybridgroup.gobot/platforms/pebble/pebble_adaptor.go

25 lines
557 B
Go
Raw Normal View History

2014-05-03 06:22:05 +08:00
package pebble
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 }
2016-07-14 00:44:47 +08:00
// Connect returns true if connection to pebble is established successfully
func (a *PebbleAdaptor) Connect() (errs []error) {
return
2014-05-03 06:22:05 +08:00
}
2016-07-14 00:44:47 +08:00
// Finalize returns true if connection to pebble is finalized successfully
func (a *PebbleAdaptor) Finalize() (errs []error) {
return
2014-05-03 06:22:05 +08:00
}