To run the local dev server:
cd server
go run .Flags
To clean up the BQ datasets, one can has to delete the functions that are using it first:
gcloud functions list
gcloud functions delete server
Then figure out which datasets to delete.
gcloud alpha bq datasets list
gcloud alpha bq datasets delete clients --remove-tables
Note: In some cases a web based session could be causing the above to fail. Tough luck - delete the datasets from the BigQuery part of the GCP console.
The generator/
folder contains boilerplate code that dispatches generated events to the function for testing purposes. To run it, try go run .
in that folder.
Create new sersor:
go run . mksensor -n SensorName -l SensorLocaltion