f9af3b6ee4
* initial commit for PUT request authorization * inital auth for put request * auth. request working for all req * deleted library * removed .db files * work in progress for modifying test suite to accomodate credentials * modified tests * gofmt, fixed code based on suggestions; test passed * gofmt again * merged nat's update on pointers, passed tests, cleanup from git rebase * fixed fmt * fixed fmt on tests * work in progress * reduced code * fixed naming conventions * added line in code * fixed server bug, merged new code to server, added env * fixed linter; getting cright issues on piecestore * added comments for what passes on the creds |
||
---|---|---|
.. | ||
main.go | ||
README.md |
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/netstate/main.go
needs to be running for this to work.
To run the client:
go run examples/netstate-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/protos/netstate/netstate.proto
, the protobuf file will need to be regenerated by running go generate
inside protos/netstate
.
Tests for this example code can be found in storj.io/storj/pkg/netstate/client_test.go
.