- Create proto file first
- Define contracts
- Create rpc methods
- Generate proto interfaces with protoc
- Create main and start server
- Deal with requests
- Run:
protoc --go_out=. --go-grpc_out=. proto/register.proto
- Execute:
go run cmd/grpc/main.go
- Then, start Evans:
docker run --rm --network host -it ghcr.io/ktr0731/evans --host localhost --port 50051 --reflection