database

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDevice added in v0.1.1

func DeleteDevice(applicationUUID int, deviceUUID string) error

DeleteDevice deletes a specific device

func GetDevice

func GetDevice(applicationUUID int, deviceUUID string) ([]byte, error)

GetDevice gets a specific device

func GetDeviceMapping

func GetDeviceMapping(deviceUUID string) (int, string, error)

GetDeviceMapping gets the applicationUUID and localUUID for a specific device

func GetDevices

func GetDevices(applicationUUID int) (map[string][]byte, error)

GetDevices gets all devices associated to a specific application

func PutDevice

func PutDevice(applicationUUID int, localUUID, deviceUUID string, device []byte) error

PutDevice puts a specific device

func PutDevices

func PutDevices(applicationUUID int, devices map[string][]byte) error

PutDevices puts all devices associated to a specific application

Types

This section is empty.

Jump to

Keyboard shortcuts

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