12 Commits

Author SHA1 Message Date
A. Svensson
e94ff7ede7 Cleaned up error handling. 2016-06-19 16:08:17 +02:00
A. Svensson
3fb5a6a3e9 Do not expose the database at instance.DB anymore. 2016-06-19 15:32:18 +02:00
A. Svensson
d2af505b0c Add TOML config and clean up startup.
- Removed servers.json and it's config code.
- Load the new config.toml, using TOML instead of JSON.
- Moved most of the cli flags to the config file.
- Simplified creation of a new server instance (using New()).
- Goroutine running updates was moved inside the lib.
2016-06-19 15:31:38 +02:00
A. Svensson
12c6fe64ba Rename log_error to LogError. 2016-04-22 15:04:51 +02:00
A. Svensson
549c5b3599 Fix hardcoded file paths. 2016-04-22 11:15:18 +02:00
A. Svensson
e526cff3e7 Removed the IsDebug* crap. 2016-04-21 14:59:43 +02:00
A. Svensson
014b42cbb3 Handle errors better in updater/scraper/poller. 2016-04-21 14:54:02 +02:00
A. Svensson
2ec35faed1 Fix servers not getting removed. 2016-02-22 19:30:25 +01:00
A. Svensson
5a10cdecd9 Fix the stupid DB functions and embed gorm instead. 2016-02-20 20:46:27 +01:00
A. Svensson
3dfee907c1 Run updates in a DB transaction. 2016-02-20 20:25:18 +01:00
A. Svensson
66cad28cf9 Fix removing inactive servers and avoid doing unneeded work. 2016-02-20 20:14:00 +01:00
A. Svensson
c6ec28fc9b Added the new go code. 2015-11-03 19:36:33 +01:00