gobot.io/x/gobot/v2@v2.1.0/platforms/pebble/pebble_adaptor.go (about) 1 package pebble 2 3 type Adaptor struct { 4 name string 5 } 6 7 // NewAdaptor creates a new pebble adaptor 8 func NewAdaptor() *Adaptor { 9 return &Adaptor{ 10 name: "Pebble", 11 } 12 } 13 14 func (a *Adaptor) Name() string { return a.name } 15 func (a *Adaptor) SetName(n string) { a.name = n } 16 17 // Connect returns true if connection to pebble is established successfully 18 func (a *Adaptor) Connect() (err error) { 19 return 20 } 21 22 // Finalize returns true if connection to pebble is finalized successfully 23 func (a *Adaptor) Finalize() (err error) { 24 return 25 }