mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-22 13:51:18 +00:00
19 lines
327 B
Markdown
19 lines
327 B
Markdown
|
# Metadata example
|
||
|
|
||
|
This example shows how to set and read metadata in RPC headers and trailers.
|
||
|
Please see
|
||
|
[grpc-metadata.md](https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-metadata.md)
|
||
|
for more information.
|
||
|
|
||
|
## Start the server
|
||
|
|
||
|
```
|
||
|
go run server/main.go
|
||
|
```
|
||
|
|
||
|
## Run the client
|
||
|
|
||
|
```
|
||
|
go run client/main.go
|
||
|
```
|