storj/examples/netstate-client
nfarah86 f9af3b6ee4
Mutex/auth grpc (#50)
* 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
2018-06-04 09:45:07 -07:00
..
main.go Mutex/auth grpc (#50) 2018-06-04 09:45:07 -07:00
README.md Enables netstate service to save pointers (#49) 2018-05-29 22:47:40 -04: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/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.