mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
5d3c96947c
read HISTORY.md Former-commit-id: 30a16cceb11f754aa32923058abeda1e736350e7
21 lines
379 B
Markdown
21 lines
379 B
Markdown
# gRPC Iris Example
|
|
|
|
## Generate TLS Keys
|
|
|
|
```sh
|
|
$ openssl genrsa -out server.key 2048
|
|
$ openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
|
|
```
|
|
|
|
## Install the protoc Go plugin
|
|
|
|
```sh
|
|
$ go get -u github.com/golang/protobuf/protoc-gen-go
|
|
```
|
|
|
|
## Generate proto
|
|
|
|
```sh
|
|
$ protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld
|
|
```
|