storj/examples/pointerdb-client
Bryan White 2a0c4e60d2
preparing for use of customtype gogo extension with NodeID type (#693)
* preparing for use of `customtype` gogo extension with `NodeID` type

* review changes

* preparing for use of `customtype` gogo extension with `NodeID` type

* review changes

* wip

* tests passing

* wip fixing tests

* more wip test fixing

* remove NodeIDList from proto files

* linter fixes

* linter fixes

* linter/review fixes

* more freaking linter fixes

* omg just kill me - linterrrrrrrr

* travis linter, i will muder you and your family in your sleep

* goimports everything - burn in hell travis

* goimports update

* go mod tidy
2018-11-29 19:39:27 +01:00
..
main.go preparing for use of customtype gogo extension with NodeID type (#693) 2018-11-29 19:39:27 +01:00
README.md Flatten proto definitions into a single package (#360) 2018-09-18 07:39:06 +03:00

gRPC Client + BoltDB Crud Interface

This is an example gRPC client which makes CRUD requests (create, read, update, delete) for storing pointers at given paths in BoltDB.

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

To run the client:

go run examples/pointerdb-client/main.go

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

Afterward, you can use Bolter or a similar BoltDB viewer to make sure your pointer entries were changed as expected.

If changes are made to storj.io/storj/pkg/pb/pointerdb.proto, the protobuf file will need to be regenerated by running go generate inside pkg/pb.

Tests for this example code can be found in storj.io/storj/pkg/pointerdb/client_test.go.