storj/examples/statdb-client
Bryan White 8b9711cb5e
better waitlist-gating (#557)
* better waitlist-gating

(cherry picked from commit 490fe02b7c3558da18678dfb651c92ec9c4a75b5)

* fix broken test

* linter fixes

* linter fixes

* make extension verification optional

* add certifcate gating script for captplanet

* fixing tests

* linter fixes

* linter fixes?

* moar linter fixes

* Revert "moar linter fixes"

This reverts commit 8139ccbd73cbbead987b7667567844f50f7df2c8.

* just kill me

* refactor

* refactor tests

* liniter...

* cleanup
2018-11-01 16:48:43 +01:00
..
main.go better waitlist-gating (#557) 2018-11-01 16:48:43 +01:00
README.md rename farmers to storagenode (#275) 2018-08-24 21:52:58 -04:00

gRPC Client

This is an example gRPC client which makes requests for updating and storing storagenode stats in a relational database.

The gRPC server at storj.io/storj/cmd/statdb/main.go needs to be running for this to work.

To run the client:

go run examples/statdb-client/main.go

You can change the port number with a flag if necessary: -port=<port-number>

If changes are made to storj.io/storj/pkg/statdb/proto/statdb.proto, the protobuf file will need to be regenerated by running go generateinsidepkg/statdb/proto`

If changes are made to storj.io/storj/pkg/statdb/dbx/statdb.dbx, the dbx files will need to be regenerated by running go generateinsidepkg/statdb/dbx`