diff options
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 +} |
