https://github.com/rensawamo/flutter_all_grpcs
https://github.com/rensawamo/flutter_all_grpcs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rensawamo/flutter_all_grpcs
- Owner: rensawamo
- Created: 2024-02-07T05:15:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-05T10:19:39.000Z (over 1 year ago)
- Last Synced: 2025-01-08T14:42:35.811Z (5 months ago)
- Language: Dart
- Size: 315 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Flutter で gRPCを使う
通常は GOでサーバを実装するが、Dartでも可能。
4種類のgRPCのサンプルプログラム
###
### grpc 生成
```sh
protoc -I gRPC/ gRPC/reserve.proto --dart_out=grpc:gRPC
```### import がある時 後ろにインポートするものをつける
```sh
protoc -I gRPC/ gRPC/reserve.proto --dart_out=grpc:gRPC google/protobuf/timestamp.proto
```