Documentation ¶ Index ¶ type DB func New() (*DB, error) func (d *DB) Add(device storage.Device) (int64, error) func (d *DB) Delete(address string) error func (d *DB) Get(address string) (storage.Device, error) func (d *DB) GetAll(pageID int64) (storage.DeviceList, error) func (d *DB) Init() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DB ¶ type DB struct { *sql.DB } func New ¶ func New() (*DB, error) func (*DB) Add ¶ func (d *DB) Add(device storage.Device) (int64, error) func (*DB) Delete ¶ func (d *DB) Delete(address string) error func (*DB) Get ¶ func (d *DB) Get(address string) (storage.Device, error) func (*DB) GetAll ¶ func (d *DB) GetAll(pageID int64) (storage.DeviceList, error) func (*DB) Init ¶ func (d *DB) Init() error Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.