diff options
| author | Maximilian | 2019-04-17 10:33:39 +0200 |
|---|---|---|
| committer | Maximilian | 2019-04-17 10:33:39 +0200 |
| commit | 6a771c754a9ede42fa9bff743087510a2168cf59 (patch) | |
| tree | 1e0d5ba00d93e4d53fceb97fc3990ce49dfa712e /main.go | |
| parent | 4dc18e3691127e058833fd9c7a5bbee333c3a66c (diff) | |
| download | ghrss-6a771c754a9ede42fa9bff743087510a2168cf59.tar.gz | |
Adds crawler for Github.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -12,7 +12,7 @@ import ( type App struct { Config *Config DB *sqlx.DB - Now int64 + Now time.Time Debug bool } @@ -25,7 +25,7 @@ func main() { // overwrite the global _conf = Config{} - app.Now = time.Now().Unix() + app.Now = time.Now() log.Debug(fmt.Sprintf(`Connecting to "%s" database "%s" as user "%s" on host "%s:%s" with extra options "%s".`, app.Config.DBDriver, app.Config.DBDBName, app.Config.DBUser, app.Config.DBHost, app.Config.DBPort, app.Config.DBOptions)) @@ -44,4 +44,7 @@ func main() { Fatal(err, "Creating table failed") } + platforms := app.GetPlatforms() + app.Scrape(platforms) + } |
