diff options
Diffstat (limited to 'app/struct.go')
| -rw-r--r-- | app/struct.go | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/app/struct.go b/app/struct.go index 49a201d..fdbbced 100644 --- a/app/struct.go +++ b/app/struct.go @@ -11,20 +11,21 @@ type Host struct { Host string Url string // Protocoll string // e.g. http - Monitored bool // disable monitoring on error - Private bool - Status string - StatusCode int64 - Success bool - Reason string // Connection failure + Monitored bool // disable monitoring on error + Private bool + Status string + StatusCode int64 + Success bool + Reason string // Connection failure + Description string /* Date time.Time Include string // Website must include this string Except string // Website must not include this string Alert bool // True to send alert on failure + DeletedAt time.Time */ CreatedAt time.Time - DeletedAt time.Time UpdatedAt time.Time Class string } @@ -35,13 +36,19 @@ type User struct { Email string Password string CreatedAt time.Time - DeletedAt time.Time UpdatedAt time.Time } +type Sticky struct { + Id int64 + Sticky string +} + type Messages struct { Success []interface{} Error []interface{} Hosts []Host moreScripts []string + NextRun time.Time + Sticky string } |
