model

package
v0.0.0-...-a1584db Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm struct {
	ID           bson.ObjectId `bson:"_id"`
	DeviceID     bson.ObjectId `bson:"device_id"`
	AlarmTime    time.Time     `bson:"alarm_time"`
	Description  string        `bson:"description,omitempty"`
	CreatedAt    time.Time     `bson:"created_at"`
	RepeatWeekly bool          `bson:"repeat_weekly"`
	UploadedAt   time.Time     `bson:"uploaded_at"`
	Weekday      time.Weekday  `bson:"weekday"`
}

Alarm model

type Device

type Device struct {
	ID           bson.ObjectId `bson:"_id"`
	Description  string        `bson:"description,omitempty"`
	Name         string        `bson:"name"`
	RegisteredAt time.Time     `bson:"registered_at"`
}

Device database model

type Statistic

type Statistic struct {
	DeviceID    bson.ObjectId `bson:"device_id"`
	Date        time.Time     `bson:"date"`
	Description string        `bson:"description,omitempty"`
	Value       float64       `bson:"value"`
	Type        string        `bson:"type"`
}

Statistic database model

Jump to

Keyboard shortcuts

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