Documentation ¶
Overview ¶
Package device contains the device service. The device service is a simple blob-storage service for tracking physical device.
Index ¶
- Constants
- func DeleteDevice(networkID, deviceType, deviceKey string) error
- func DeleteDevices(networkID string, ids []storage.TypeAndKey) error
- func DoesDeviceExist(networkID, deviceType, deviceID string) bool
- func GetDevice(networkID, deviceType, deviceKey string) (interface{}, error)
- func GetDevices(networkID string, deviceType string, deviceIDs []string) (map[string]interface{}, error)
- func RegisterDevice(networkID, deviceType, deviceKey string, info interface{}) error
- func UpdateDevice(networkID, deviceType, deviceKey string, info interface{}) error
Constants ¶
View Source
const ( SerdeDomain = "device" // ServiceName is the name of this service ServiceName = "DEVICE" // DBTableName is the name of the sql table used for this service DBTableName = "device" )
SerdeDomain is the domain for all Serde implementations for the device service
Variables ¶
This section is empty.
Functions ¶
func DeleteDevice ¶
func DeleteDevices ¶
func DeleteDevices(networkID string, ids []storage.TypeAndKey) error
func DoesDeviceExist ¶
func GetDevices ¶
func RegisterDevice ¶
func UpdateDevice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.