diff options
| author | Horus_Arch | 2015-02-18 17:03:41 +0100 |
|---|---|---|
| committer | Horus_Arch | 2015-02-18 17:03:41 +0100 |
| commit | cb5f3037bb18403433c2cfd0271f6bea76906aca (patch) | |
| tree | 448397529fdbd1660b12001918289e04aa1c7ea6 /app/controllers/db.go | |
| parent | d6ab45e8ec5f26004b4efc07383245051d546bf3 (diff) | |
| download | statuspage-cb5f3037bb18403433c2cfd0271f6bea76906aca.tar.gz | |
Reimplementation with gorilla toolkit.
Diffstat (limited to 'app/controllers/db.go')
| -rw-r--r-- | app/controllers/db.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/controllers/db.go b/app/controllers/db.go deleted file mode 100644 index e96cb63..0000000 --- a/app/controllers/db.go +++ /dev/null @@ -1,38 +0,0 @@ -package controllers - -import ( - "github.com/jinzhu/gorm" - _ "github.com/mattn/go-sqlite3" - "github.com/revel/revel" - "time" -) - -/* Maybe worth saving uptime history? */ - -type Hosts 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 -} |
