From cb5f3037bb18403433c2cfd0271f6bea76906aca Mon Sep 17 00:00:00 2001 From: Horus_Arch Date: Wed, 18 Feb 2015 17:03:41 +0100 Subject: Reimplementation with gorilla toolkit. --- struct.go | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 struct.go (limited to 'struct.go') 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 +} -- cgit v1.2.3