aolab

package
v0.0.0-...-c205787 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// TODO
	//	Timestamp time.Time
	Type   string
	Device string
	States map[string]interface{}
}

Log represents data that is coming from aolab nodes

type Model

type Model struct{}

Model reperesents AoLab model. this model for marshaling and unmarshaling of data is created originally by Amirkabir University IoT Lab

func (Model) Decode

func (m Model) Decode(d []byte) interface{}

Decode given data with aolab structure

func (Model) Encode

func (m Model) Encode(o interface{}) []byte

Encode given object with aolab structure

func (Model) Name

func (m Model) Name() string

Name returns model name

type Notification

type Notification struct {
	Type     string
	Device   string
	Settings map[string]interface{}
}

Notification represents data that is going to aolab nodes

Jump to

Keyboard shortcuts

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