blob: eae62b05dd8fb2a73e50664e9be5cf7e1195d879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package main
import "database/sql"
var (
metricsPusherDelay int64 = 5
DBURL string = "postgresql.docker.localhost"
DISTRIBUTORURL string = "localhost:8081"
METRICBUNDLERURL string = "metrics-bundler.nbg1.emile.space"
DBHOST = "postgres.docker.localhost"
DBPORT = 5432
DBUSER = "postgres"
DBPASSWD = ""
DBNAME = "postgres"
DBSSLMODE = "disable"
db *sql.DB
metrics map[string]float64
starsProcessed int64
theta = 0.5
)
func main() {
getEnvironment()
connectToDatabase()
initMetricPusher()
processStars()
}
|