Danny van Kooten
|
6b5cccd147
|
move raw SQL from /api/collect handler to datastore package
|
2017-01-25 20:01:02 +01:00 |
Danny van Kooten
|
28fa8431ef
|
add user functions to datastore
|
2017-01-25 17:11:35 +01:00 |
Danny van Kooten
|
ed34f069d5
|
get rid of output when no database migrations ran
|
2017-01-25 16:19:07 +01:00 |
Danny van Kooten
|
ffe1db7c44
|
update readme, database migrations will now run automatically
|
2017-01-25 15:19:08 +01:00 |
Danny van Kooten
|
e47183230d
|
use sql migrate for handling database migrations & run on boot
|
2017-01-25 15:17:24 +01:00 |
Danny van Kooten
|
46f954cc6e
|
first stab at supporting postgres driver. #9
|
2017-01-25 13:46:43 +01:00 |
Danny van Kooten
|
db170276fb
|
add big fat heads up about running Ana in production
|
2017-01-24 20:33:06 +01:00 |
Danny van Kooten
|
0b788cd0f4
|
update README with CLI command changes
|
2017-01-24 20:30:32 +01:00 |
Danny van Kooten
|
8a0657b977
|
use alecthomas/kingpin for parsing CLI arguments. Closes #7
|
2017-01-24 20:28:22 +01:00 |
Danny van Kooten
|
6161442487
|
update vendored deps
|
2017-01-24 20:27:30 +01:00 |
Danny van Kooten
|
9d0bee4372
|
add test for respond func
|
2017-01-15 16:12:14 +01:00 |
Danny van Kooten
|
3a46eda0ee
|
move pageviews struct to API endpoint
|
2017-01-13 16:46:09 +01:00 |
Danny van Kooten
|
8ebe401684
|
add unique key to option name to prevent duplicate rows
|
2017-01-13 16:45:51 +01:00 |
Danny van Kooten
|
626de69c95
|
generate unique visitor key from date + ip + user agent
|
2017-01-13 16:45:17 +01:00 |
Danny van Kooten
|
f6cab7c297
|
when a new message is set, clear previous timeout
|
2017-01-13 13:41:30 +01:00 |
Danny van Kooten
|
b5b31d89f8
|
parse json in all responses & handle login error
|
2017-01-13 12:47:21 +01:00 |
Danny van Kooten
|
9200df8569
|
envelope all json responses in api endpoints
|
2017-01-13 12:46:54 +01:00 |
Danny van Kooten
|
b3f47e3bc3
|
stop gitignoring vendor dir, closes #6
|
2017-01-13 11:44:38 +01:00 |
Danny van Kooten
|
13216033b8
|
update readme with new db migration & vendor sync command
|
2017-01-09 21:07:41 +01:00 |
Danny van Kooten
|
fbaa8d6932
|
ignore vendor
|
2017-01-09 20:13:45 +01:00 |
Danny van Kooten
|
fdf576d1bb
|
re-add portArg var declaration
|
2017-01-09 19:53:17 +01:00 |
Danny van Kooten
|
5173f3c863
|
Remove starting msg, start .env notice with uppercase
|
2017-01-09 19:52:41 +01:00 |
Danny van Kooten
|
4cd4bf3c19
|
don't source vendor dir
|
2017-01-09 19:48:10 +01:00 |
Danny van Kooten
|
ec64757966
|
solve merge conflicts
|
2017-01-09 19:47:50 +01:00 |
Danny van Kooten
|
43f28c3f9a
|
update yarn deps
|
2017-01-06 15:59:02 +01:00 |
Danny van Kooten
|
d6a7cb0365
|
misc CS fixes
|
2017-01-06 15:58:50 +01:00 |
Danny van Kooten
|
440a0e5bfa
|
fix resource URL
|
2017-01-06 15:58:29 +01:00 |
Danny van Kooten
|
df4843e4cc
|
return 0 when archive tables have no rows for given timestamps
|
2017-01-06 15:58:16 +01:00 |
Danny van Kooten
|
c9c30557db
|
add cron dependency
|
2017-01-06 15:58:00 +01:00 |
Danny van Kooten
|
4170e30274
|
Add test for calculatePointPercentages.
|
2016-12-26 11:43:50 +02:00 |
Danny van Kooten
|
57c2905efe
|
Fix date format in tests for `fill` func.
|
2016-12-26 11:43:37 +02:00 |
Danny van Kooten
|
7be11887ad
|
Calculate point percentages separately & query total of metric.
|
2016-12-25 18:47:11 +02:00 |
Danny van Kooten
|
e5391e46b4
|
Run `count.Archive` command hourly so an external cronjob task is no necessity.
|
2016-12-25 18:27:39 +02:00 |
Danny van Kooten
|
3d93e03e13
|
When running `-archive_data` multiple times a day, recount current day & update previous archived values.
|
2016-12-25 18:24:53 +02:00 |
Matthias Loibl
|
bf0252cabb
|
Fix missing import for randomdata deleted by goimports
|
2016-12-25 17:11:37 +01:00 |
Matthias Loibl
|
7c0cfd83a0
|
Run goimports on all files in the project to format imports
|
2016-12-25 16:37:45 +01:00 |
Matthias Loibl
|
ec6d3e004b
|
Vendor all dependencies with govendor
|
2016-12-25 16:34:47 +01:00 |
Matthias Loibl
|
c6f9516ca6
|
Create Dockerfile and add example docker-compose.yml
|
2016-12-25 16:33:57 +01:00 |
Matthias Loibl
|
c7c30e25f2
|
Create a Makefile, delete do script
|
2016-12-25 16:33:23 +01:00 |
Matthias Loibl
|
5824435243
|
Minor improvements to the Go code
* Don't log.Fatal if there's no .env, there won't be a .env if you run
with ENV variables
* Make the DSN multiline so it's easier to read
|
2016-12-25 16:24:40 +01:00 |
Danny van Kooten
|
4a7dcf9439
|
Instead of querying total, calculate it from row values instead.
|
2016-12-24 15:57:37 +02:00 |
Danny van Kooten
|
fd598da502
|
Add timestamp to Pageview model in collect method.
|
2016-12-24 15:57:04 +02:00 |
Danny van Kooten
|
3a99939800
|
Store `last_archived` option after storing aggregated daily totals & use that when re-running `-archive_data` command. This speeds up the archive command considerably & allows for multiple runs a day.
|
2016-12-24 15:14:25 +02:00 |
Danny van Kooten
|
4454b044d4
|
Add DROP TABLE statements for new total tables.
|
2016-12-24 15:12:55 +02:00 |
Danny van Kooten
|
68ab7985c8
|
Add options table.
|
2016-12-24 15:12:17 +02:00 |
Danny van Kooten
|
68a7a0caa9
|
Add `count.RealtimeVisitors` func.
|
2016-12-24 15:12:01 +02:00 |
Danny van Kooten
|
7dc7dee2f4
|
Get rid of /api/countries endpoint for now.
|
2016-12-24 15:11:36 +02:00 |
Danny van Kooten
|
cd8e3c3d9a
|
Get total # of visitors in each individual metric count func.
|
2016-12-24 15:11:15 +02:00 |
Danny van Kooten
|
86efee462a
|
Don't export login struct.
|
2016-12-24 15:09:24 +02:00 |
Danny van Kooten
|
1b107a55d5
|
Get rid of `archive` table & introduce `total_*` tables for each metric.
|
2016-12-24 13:07:33 +02:00 |