status-go/api
Shivek Khurana 1097b14a7f
🎭 📊 Anonymous Metrics V0 (#2170)
* Migrations in place, how to run them?

* Remove down migrations and touch database.go

* Database and Database Test package in place, added functions to get and store app metrics

* make generate output

* Minor bug fix on app metrics insert and select

* Add a validation layer to restrict what can be saved in the database

* Make validation more terse, throw error if schema doesn't exist, expose appmetrics service

* service updates

* Compute all errors before sending them out

* Trying to bring a closjure to appmetrics go

* Expose appmetrics via an api, skip fancy

* Address value as Jason Dawt Rawmasage to ease parsing

* Introduce a buffered chan with magic cap of 8 to minimize writes to DB. Tests for service and API. Also expose GetAppMetrics function.

* Lint issues

* Remove autoincrement, undo waku.json changes, fix error being shadowed, return nil where nil ought to be returned, get rid of buffered channel

* Bump migration number

* Fix API factory usage

* Add comment re:json.RawMessage instead of strings

* Get rid of test vars, throw save error inside the loop

* Update version

Co-authored-by: Samuel Hawksby-Robinson <samuel@samyoul.com>
2021-03-17 18:09:28 +05:30
..
multiformat Added link to specs for key compression API (#1995) 2020-06-24 14:39:42 +01:00
app_state.go
app_state_test.go
backend.go Fix tests and lint 2020-12-17 14:10:00 +01:00
backend_subs_test.go Upgrade linter and address issues 2020-12-28 16:55:14 +01:00
backend_test.go Upgrade linter and address issues 2020-12-28 16:55:14 +01:00
connection.go
connection_test.go
geth_backend.go 🎭 📊 Anonymous Metrics V0 (#2170) 2021-03-17 18:09:28 +05:30
nimbus_backend.go Fix tests and lint 2020-12-17 14:10:00 +01:00
utils.go Migrate more files to eth-node/crypto 2019-12-20 11:24:26 +01:00
utils_test.go Use goimports instead of gofmt 2020-01-06 10:17:23 +01:00