26 lines
527 B
Go
26 lines
527 B
Go
package pebble
|
|
|
|
type Adaptor struct {
|
|
name string
|
|
}
|
|
|
|
// NewAdaptor creates a new pebble adaptor
|
|
func NewAdaptor() *Adaptor {
|
|
return &Adaptor{
|
|
name: "Pebble",
|
|
}
|
|
}
|
|
|
|
func (a *Adaptor) Name() string { return a.name }
|
|
func (a *Adaptor) SetName(n string) { a.name = n }
|
|
|
|
// Connect returns true if connection to pebble is established successfully
|
|
func (a *Adaptor) Connect() error {
|
|
return nil
|
|
}
|
|
|
|
// Finalize returns true if connection to pebble is finalized successfully
|
|
func (a *Adaptor) Finalize() error {
|
|
return nil
|
|
}
|