entities

package
v1.0.4-0...-7069f2b Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	From      string    `bson:"from" json:"from"`
	Payload   Payload   `bson:"payload" json:"payload"`
	Timestamp time.Time `bson:"timestamp" json:"timestamp"`
}

type Payload

type Payload struct {
	SensorID int         `bson:"sensorId" json:"sensorId"`
	Value    interface{} `bson:"value" json:"value"`
}

type Query

type Query struct {
	ThingID    string
	SensorID   string
	Order      int
	Skip       int64
	Take       int64
	StartDate  time.Time
	FinishDate time.Time
}

Query represents the domain data query properties

Jump to

Keyboard shortcuts

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