Skip to content

CSCI-2390-Project/privacy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Hello World

This example demonstrates how to play around with our privacy modification to gRPC.

For convenience, the generated .pb.go files are already included for you. If you want the full experience, follow these prerequisites to produce them from helloworld/helloworld/demo.proto --- otherwise, if you just want to get started, you can skip these steps:

  1. Install protoc.

  2. Download our modified grpc-go. Navigate to cmd/protoc-gen-go-gprc, and run go install .

  3. Download our modified protobuf-go. Navigate to cmd/protoc-gen-go, and run go install .

  4. cd helloworld/helloworld/demo.proto and run using the following command:

    protoc --go_out=. --go-grpc_out=. demo.proto
    

    This will create a folder containing generated helloworld.pb.go and helloworld_grpc.pb.go for you. Replace the corresponding files in helloworld/helloworld with these values.

Follow these setup to run the [quick start][] example:

  1. Run the server:

    cd helloworld/greeter_server/
    GRPC_PRIVACY_POLICY_LOCATION=privacy_policy.json go run .
  2. Run the client:

    cd helloworld/greeter_client/
    go run .

You can amend the provided helloworld/greeter_server/privacy_policy.json file to your heart's content.

For full insight into what's happening under the hood, we recommend enabling debug-level logging by uncommenting line 58 in greeter_server/main.go.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages