model

package
Version: v0.0.0-...-45ce8eb Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormUserLogin

type FormUserLogin struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Role     string `json:"role"`
}

type Project

type Project struct {
	ProjectId     string `json:"projectid,omitempty"`
	ProjectName   string `json:"projectname"`
	ProjectDesc   string `json:"projectdesc"`
	ProjectOwner  string `json:"projectowner"`
	ProjectStatus string `json:"projectstatus,omitempty"`
}

type Sensor

type Sensor struct {
	SensorId     string    `json:"sensorid,omitempty"`
	OwnerId      string    `json:"ownerid"`
	SensorName   string    `json:"sensorname"`
	SensorDesc   string    `json:"sensordesc"`
	SensorType   string    `json:"sensortype"`
	IsShared     bool      `json:"isshared"`
	IsEnabled    bool      `json:"isenabled,omitempty"`
	IsActivated  bool      `json:"isactivated,omitempty"`
	RegisterTime time.Time `json:"created,omitempty"`
	Latitude     string    `json:"latitude,omitempty"`
	Longitude    string    `json:"longitude,omitempty"`
}

type SensorAuthenticate

type SensorAuthenticate struct {
	OwnerId    string `json:"ownerid"`
	SensorName string `json:"sensorname"`
	Password   string `json:"password"`
}

type SensorData

type SensorData struct {
	SensorId   bson.ObjectId `json:"id" bson:"_id,omitempty"`
	SensorName string        `json:"sensorname"`
	SensorData string        `json:"sensordata"`
	Location   struct {
		Latitude  float64 `json:"latitude"`
		Longitude float64 `json:"longitude"`
	} `json:"location"`
	Time time.Time `json:"created,omitempty"`
}

type User

type User struct {
	UserId   string `json:"userid,omitempty"`
	Username string `json:"username"`
	EmailId  string `json:"emailid"`
	Password string `json:"password"`
	Role     string `json:"role"`
}

type VirtSensor

type VirtSensor struct {
	VirtSensorId       string    `json:"virtsensorid,omitempty"`
	VirtSensorName     string    `json:"virtsensorname"`
	VirtSensorUserId   string    `json:"virtsensoruserid"`
	PhysicalSensorName string    `json:"sensorname"`
	ProjectId          string    `json:"projectid"`
	IsEnabled          bool      `json:"isenabled,omitempty"`
	DataFreqinSec      int       `json:"datafreqinsec"`
	UsageCounterinMins int       `json:"usagecounterinmins,omitempty"`
	RegisterTime       time.Time `json:"created,omitempty"`
	Status             int       `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL