aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-14 12:52:36 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-14 12:52:36 -0500
commit1f936737809a85281091496e8668bda56214d255 (patch)
tree15eaed1e4f20b66c9d7d75031a4ee8e974a9b8b4
parent0062e5134e69dae0d35f460107a3509ed71be832 (diff)
Fixed json struct spacing issues in schedules.
-rw-r--r--schedule.go38
1 files changed, 19 insertions, 19 deletions
diff --git a/schedule.go b/schedule.go
index eea13e1..0d1faab 100644
--- a/schedule.go
+++ b/schedule.go
@@ -13,32 +13,32 @@ import (
type Timer struct {
Index int
- Name string `json:"name",omitempty`
- Description string `json:"description",omitempty`
- Command CommandInfo `json:"command",omitempty`
- Time string `json:"time",omitempty`
- Created string `json:"created",omitempty`
- Status string `json:"status",omitempty`
- AutoDelete bool `json:"autodelete",omitempty`
- StartTime string `json:"starttime",omitempty`
+ Name string `json:"name,omitempty"`
+ Description string `json:"description,omitempty"`
+ Command CommandInfo `json:"command,omitempty"`
+ Time string `json:"time,omitempty"`
+ Created string `json:"created,omitempty"`
+ Status string `json:"status,omitempty"`
+ AutoDelete bool `json:"autodelete,omitempty"`
+ StartTime string `json:"starttime,omitempty"`
}
type Alarm struct {
Index string
- Name string `json:"name",omitempty`
- Description string `json:"description",omitempty`
- Command CommandInfo `json:"command",omitempty`
- LocalTime string `json:"localtime",omitempty`
- Time string `json:"time",omitempty`
- Created string `json:"created",omitempty`
- Status string `json:"status",omitempty`
- AutoDelete bool `json:"autodelete",omitempty`
+ Name string `json:"name,omitempty"`
+ Description string `json:"description,omitempty"`
+ Command CommandInfo `json:"command,omitempty"`
+ LocalTime string `json:"localtime,omitempty"`
+ Time string `json:"time,omitempty"`
+ Created string `json:"created,omitempty"`
+ Status string `json:"status,omitempty"`
+ AutoDelete bool `json:"autodelete,omitempty"`
}
type CommandInfo struct {
- Address string `json:"address",omitempty`
- Body string `json:"body",omitempty` // TODO: may be diff type
- Method string `json:"method",omitempty`
+ Address string `json:"address,omitempty"`
+ Body string `json:"body,omitempty"` // TODO: may be diff type
+ Method string `json:"method,omitempty"`
}
// func (bridge *Bridge) GetSchedules() ([]interface{}, error) {