Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata example code #629

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions Documentation/grpc-metadata.md
Expand Up @@ -76,8 +76,7 @@ func (s *server) SomeRPC(ctx context.Context, in *pb.SomeRequest) (*pb.SomeRespo

## Sending and receiving metadata - client side

[//]: # "TODO: uncomment next line after example source added"
[//]: # "Real metadata sending and receiving examples are available [here](TODO:example_dir)."
Client side metadata sending and receiving examples are available [here](../examples/metadata/helloworld_metadata_client/main.go).

### Sending metadata

Expand Down Expand Up @@ -138,8 +137,7 @@ trailer := stream.Trailer()

## Sending and receiving metadata - server side

[//]: # "TODO: uncomment next line after example source added"
[//]: # "Real metadata sending and receiving examples are available [here](TODO:example_dir)."
Server side metadata sending and receiving examples are available [here](../examples/metadata/helloworld_metadata_server/main.go).

### Receiving metadata

Expand Down
374 changes: 374 additions & 0 deletions examples/metadata/helloworld/helloworld.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.