summaryrefslogtreecommitdiff
path: root/struct.go
diff options
context:
space:
mode:
authorHorus32015-02-19 00:03:18 +0100
committerHorus32015-02-19 00:03:18 +0100
commit58e63343703e0c3f3c12934e62fc0f4575761869 (patch)
treec60acb1bb97cdd47a6c7ee1c5a2e38d50f0f84c4 /struct.go
parentc6260f34b931bdda82d3dab256f4420caa1a45aa (diff)
parentcb5f3037bb18403433c2cfd0271f6bea76906aca (diff)
downloadstatuspage-58e63343703e0c3f3c12934e62fc0f4575761869.tar.gz
Merged.
Diffstat (limited to 'struct.go')
-rw-r--r--struct.go37
1 files changed, 37 insertions, 0 deletions
diff --git a/struct.go b/struct.go
new file mode 100644
index 0000000..26c462b
--- /dev/null
+++ b/struct.go
@@ -0,0 +1,37 @@
+package main
+
+import (
+ "time"
+)
+
+/* Maybe worth saving uptime history? */
+
+type Host struct {
+ Id int64
+ UserId int64
+ Url string
+ Protocoll string // e.g. http
+ Private bool
+ Response int64
+ /*
+ Date time.Time
+ Success bool
+ Include string // Website must include this string
+ Except string // Website must not include this string
+ Reason string // Include, Exclude, Connection failure
+ Alert bool // True to send alert on failure
+ */
+ CreatedAt time.Time
+ DeletedAt time.Time
+ UpdatedAt time.Time
+}
+
+type User struct {
+ Id int64
+ Name string
+ Email string
+ Password string
+ CreatedAt time.Time
+ DeletedAt time.Time
+ UpdatedAt time.Time
+}