Documentation ¶
Index ¶
- Variables
- type DB
- func (d *DB) FetchMeta(tx *bolt.Tx) (*Meta, error)
- func (db *DB) GetBuzzOnDispense() (bool, error)
- func (db *DB) GetDispenseOnTouch() (bool, error)
- func (db *DB) GetLightningNode() (*LightningNode, error)
- func (db *DB) GetName() (string, error)
- func (db *DB) GetWifiConnection() (*WifiConnection, error)
- func (d *DB) Path() string
- func (d *DB) PutMeta(meta *Meta) error
- func (db *DB) SetBuzzOnDispense(buzzOnDispense bool) error
- func (db *DB) SetDispenseOnTouch(dispenseOnTouch bool) error
- func (db *DB) SetLightningNode(lightningNode *LightningNode) error
- func (db *DB) SetName(name string) error
- func (db *DB) SetWifiConnection(wifiConnection *WifiConnection) error
- func (d *DB) Wipe() error
- type LightningNode
- type Meta
- type WifiConnection
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMetaNotFound = fmt.Errorf("unable to locate meta information")
)
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is the primary data store of the sweet daemon.
func (*DB) FetchMeta ¶
FetchMeta fetches the meta data from boltdb and returns filled meta structure.
func (*DB) GetBuzzOnDispense ¶ added in v0.4.0
func (*DB) GetDispenseOnTouch ¶ added in v0.4.0
func (*DB) GetLightningNode ¶
func (db *DB) GetLightningNode() (*LightningNode, error)
func (*DB) GetWifiConnection ¶ added in v0.4.8
func (db *DB) GetWifiConnection() (*WifiConnection, error)
func (*DB) SetBuzzOnDispense ¶ added in v0.4.0
func (*DB) SetDispenseOnTouch ¶ added in v0.4.0
func (*DB) SetLightningNode ¶
func (db *DB) SetLightningNode(lightningNode *LightningNode) error
func (*DB) SetWifiConnection ¶ added in v0.4.8
func (db *DB) SetWifiConnection(wifiConnection *WifiConnection) error
type LightningNode ¶
type Meta ¶
type Meta struct { // DbVersionNumber is the current schema version of the database. DbVersionNumber uint32 }
Meta structure holds the database meta information.
type WifiConnection ¶ added in v0.4.8
Click to show internal directories.
Click to hide internal directories.