db

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db struct {
	// contains filtered or unexported fields
}

func Database

func Database() *Db

func (*Db) Tables

func (db *Db) Tables() *tables

type Devices

type Devices map[string]*model.Device

func (Devices) Add

func (devices Devices) Add(device *model.Device)

func (Devices) Exists

func (devices Devices) Exists(ieeeAddress string) bool

func (Devices) Get

func (devices Devices) Get(ieeeAddress string) (*model.Device, bool)

func (Devices) GetByNetworkAddress

func (devices Devices) GetByNetworkAddress(networkAddress string) (*model.Device, bool)

func (Devices) Remove

func (devices Devices) Remove(ieeeAddress string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL