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