package main import ( "time" ) /* Maybe worth saving uptime history? */ type Host struct { Id int64 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 /* 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 */ CreatedAt time.Time DeletedAt time.Time UpdatedAt time.Time Class string } type User struct { Id int64 Name string Email string Password string CreatedAt time.Time DeletedAt time.Time UpdatedAt time.Time } type Messages struct { Success []interface{} Error []interface{} Hosts []Host moreScripts []string }