omrobbie / gRPC-Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC Demo

Ini adalah contoh komunikasi stream data dengan menggunakan gRPC.

Preview

 

Compile proto file

Sebelum dapat menggunakan file proto (gRPC Demo/Proto/price.proto), kita harus compile dulu dengan perintah berikut:

protoc price.proto \
      --grpc-swift_opt=Client=true,Server=false \
      --grpc-swift_out=. \
      --proto_path=. \
      --swift_opt=Visibility=Public \
      --swift_out=.

Jika perintah protoc belum ada, kita dapat melakukan instalasi dengan menggunakan perintah:

brew install protobuf

About


Languages

Language:Swift 98.4%Language:Ruby 1.6%