2014-05-03 06:22:05 +08:00
|
|
|
package pebble
|
|
|
|
|
2016-10-02 00:01:30 +08:00
|
|
|
type Adaptor struct {
|
2014-11-29 10:10:05 +08:00
|
|
|
name string
|
2014-05-03 06:22:05 +08:00
|
|
|
}
|
|
|
|
|
2016-10-02 00:01:30 +08:00
|
|
|
// NewAdaptor creates a new pebble adaptor
|
|
|
|
func NewAdaptor() *Adaptor {
|
|
|
|
return &Adaptor{
|
|
|
|
name: "Pebble",
|
2014-05-24 06:09:18 +08:00
|
|
|
}
|
2014-05-03 06:22:05 +08:00
|
|
|
}
|
|
|
|
|
2016-10-02 00:01:30 +08:00
|
|
|
func (a *Adaptor) Name() string { return a.name }
|
|
|
|
func (a *Adaptor) SetName(n string) { a.name = n }
|
2014-11-29 10:10:05 +08:00
|
|
|
|
2016-07-14 00:44:47 +08:00
|
|
|
// Connect returns true if connection to pebble is established successfully
|
2016-11-08 03:10:04 +08:00
|
|
|
func (a *Adaptor) Connect() (err error) {
|
2014-11-20 15:21:19 +08:00
|
|
|
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
|
2016-11-08 03:10:04 +08:00
|
|
|
func (a *Adaptor) Finalize() (err error) {
|
2014-11-20 15:21:19 +08:00
|
|
|
return
|
2014-05-03 06:22:05 +08:00
|
|
|
}
|