model

package
v0.0.0-...-35ec728 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Index string
	Doc   interface{}
}

func (*Document) String

func (d *Document) String() string

type Element

type Element struct {
	Elem string                 `json:"elem"`
	Arg  map[string]interface{} `json:"arg"`
}

type KafkaData

type KafkaData struct {
	SensorID  int       `json:"sensor_id"`
	NodeID    int       `json:"node_id"`
	Values    []float64 `json:"values"`
	Timestamp time.Time `json:"timestamp"`
}

type Location

type Location struct {
	Lat float64 `json:"lat"`
	Lon float64 `json:"lon"`
}

type Logic

type Logic struct {
	ID        int       `json:"id"`
	LogicName string    `json:"logic_name"`
	Elems     []Element `json:"elems"`
	SensorID  int       `json:"sensor_id"`
}

type LogicData

type LogicData struct {
	SensorID   int                `json:"sensor_id"`
	SensorName string             `json:"sensor_name"`
	Values     map[string]float64 `json:"values"`
	Node       Node               `json:"node"`
	Timestamp  time.Time          `json:"timestamp"`
}

type Node

type Node struct {
	Name     string   `json:"name"`
	Location Location `json:"location"`
	SinkName string   `json:"sink_name"`
}

type Sensor

type Sensor struct {
	Name         string   `json:"name"`
	SensorValues []string `json:"sensor_values"`
}

Jump to

Keyboard shortcuts

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