diff options
| author | Horus3 | 2015-02-25 16:41:52 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-25 16:41:52 +0100 |
| commit | 49ffcba2c3c4a19d147dd792d7f6c99b7545a491 (patch) | |
| tree | 4fbd8a283ef7ab13f92e11e5030ad5c362be4524 /app/struct.go | |
| parent | 9e1d8d0fb2b57903b1c6c0c2765b7808655c74a0 (diff) | |
| download | statuspage-49ffcba2c3c4a19d147dd792d7f6c99b7545a491.tar.gz | |
UX on front end.
Diffstat (limited to 'app/struct.go')
| -rw-r--r-- | app/struct.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/struct.go b/app/struct.go index 73e1dc7..172a54d 100644 --- a/app/struct.go +++ b/app/struct.go @@ -7,8 +7,9 @@ import ( /* Maybe worth saving uptime history? */ type Host struct { - Id int64 - Url string + Id int64 + Host string + Url string // Protocoll string // e.g. http Monitored bool // disable monitoring on error Private bool @@ -25,6 +26,7 @@ type Host struct { CreatedAt time.Time DeletedAt time.Time UpdatedAt time.Time + Class string } type User struct { @@ -41,3 +43,9 @@ type FlashMessages struct { Success []interface{} Error []interface{} } + +type Admin struct { + Success []interface{} + Error []interface{} + Hosts []Host +} |
