device

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Overview

Package device contains the device service. The device service is a simple blob-storage service for tracking physical device.

Index

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 DeleteDevice(networkID, deviceType, deviceKey string) error

func DeleteDevices

func DeleteDevices(networkID string, ids []storage.TypeAndKey) error

func DoesDeviceExist

func DoesDeviceExist(networkID, deviceType, deviceID string) bool

func GetDevice

func GetDevice(networkID, deviceType, deviceKey string) (interface{}, error)

func GetDevices

func GetDevices(networkID string, deviceType string, deviceIDs []string) (map[string]interface{}, error)

func RegisterDevice

func RegisterDevice(networkID, deviceType, deviceKey string, info interface{}) error

func UpdateDevice

func UpdateDevice(networkID, deviceType, deviceKey string, info interface{}) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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